diff options
| -rw-r--r-- | aerc/dot-config/aerc/accounts.conf | 1 | ||||
| -rw-r--r-- | aerc/dot-config/aerc/binds.conf | 2 | ||||
| -rw-r--r-- | alacritty/dot-config/alacritty/alacritty-base.toml | 41 | ||||
| -rw-r--r-- | alacritty/dot-config/alacritty/alacritty-light.toml | 2 | ||||
| -rw-r--r-- | alacritty/dot-config/alacritty/dark.toml | 14 | ||||
| -rw-r--r-- | alacritty/dot-config/alacritty/dayfox.toml | 71 | ||||
| -rw-r--r-- | alacritty/dot-config/alacritty/light.toml | 13 | ||||
| -rw-r--r-- | bash/dot-inputrc | 2 | ||||
| -rw-r--r-- | lf/dot-config/lf/lfrc | 5 | ||||
| -rw-r--r-- | niri/dot-config/niri/config.kdl | 2 | ||||
| -rw-r--r-- | qute/dot-config/qutebrowser/config.py | 4 | ||||
| -rw-r--r-- | scripts/.stow-local-ignore | 2 | ||||
| -rw-r--r-- | waybar/dot-config/waybar/config.jsonc | 62 | ||||
| -rw-r--r-- | waybar/dot-config/waybar/style.css | 105 | ||||
| -rw-r--r-- | wayland-basics/.stow-local-ignore | 4 | ||||
| -rw-r--r-- | wayland-basics/dot-config/environment.d/wayland.conf | 12 | ||||
| -rw-r--r-- | wayland-basics/dot-config/systemd/user/polkit-kde.service | 12 |
17 files changed, 101 insertions, 253 deletions
diff --git a/aerc/dot-config/aerc/accounts.conf b/aerc/dot-config/aerc/accounts.conf index 801c56b..1e227f1 100644 --- a/aerc/dot-config/aerc/accounts.conf +++ b/aerc/dot-config/aerc/accounts.conf @@ -7,6 +7,7 @@ copy-to = Sent postpone = Drafts trash = Deleted archive = Archive +aliases = moreka@MIT.EDU,MOREKA@MIT.EDU check-mail-cmd = mbsync mit check-mail-timeout = 20s diff --git a/aerc/dot-config/aerc/binds.conf b/aerc/dot-config/aerc/binds.conf index 87b6c50..7c0eb80 100644 --- a/aerc/dot-config/aerc/binds.conf +++ b/aerc/dot-config/aerc/binds.conf @@ -81,7 +81,7 @@ N = :prev-result<Enter> s = :split<Enter> S = :vsplit<Enter> -O = :check-mail<Enter> +o = :check-mail<Enter> [messages:folder=Drafts] <Enter> = :recall<Enter> diff --git a/alacritty/dot-config/alacritty/alacritty-base.toml b/alacritty/dot-config/alacritty/alacritty-base.toml deleted file mode 100644 index c05e61a..0000000 --- a/alacritty/dot-config/alacritty/alacritty-base.toml +++ /dev/null @@ -1,41 +0,0 @@ -[general] -live_config_reload = true - -[window] -padding = { x = 3, y = 3 } -dynamic_title = true - -[scrolling] -history = 5000 -multiplier = 3 - -[selection] -save_to_clipboard = false - -[cursor] -unfocused_hollow = true - -[mouse] -hide_when_typing = true - -[keyboard] -bindings = [ - { key = "C", mods = "Alt", mode = "~Vi", action = "Copy" }, - { key = "V", mods = "Alt", mode = "~Vi", action = "Paste" }, - { key = "J", mods = "Alt|Shift", mode = "~Vi", action = "DecreaseFontSize" }, - { key = "K", mods = "Alt|Shift", mode = "~Vi", action = "IncreaseFontSize" }, - { key = "J", mods = "Alt", mode = "~Vi", action = "ScrollLineDown" }, - { key = "K", mods = "Alt", mode = "~Vi", action = "ScrollLineUp" }, - { key = "F11", action = "ToggleFullscreen" }, - { key = "F5", command = { program = "alacritty", args = [ - "msg", - "config", - "font.size=25", - ] } }, - { key = "F5", mods = "Shift", command = { program = "alacritty", args = [ - "msg", - "config", - "--reset", - ] } }, - { key = "N", mods = "Control|Shift", mode = "~Vi", action = "CreateNewWindow" }, -] diff --git a/alacritty/dot-config/alacritty/alacritty-light.toml b/alacritty/dot-config/alacritty/alacritty-light.toml deleted file mode 100644 index bd55513..0000000 --- a/alacritty/dot-config/alacritty/alacritty-light.toml +++ /dev/null @@ -1,2 +0,0 @@ -[general] -import = [ "alacritty-base.toml", "light.toml" ] diff --git a/alacritty/dot-config/alacritty/dark.toml b/alacritty/dot-config/alacritty/dark.toml deleted file mode 100644 index 3bf22cf..0000000 --- a/alacritty/dot-config/alacritty/dark.toml +++ /dev/null @@ -1,14 +0,0 @@ -[window] -# opacity = 0.95 - -[env] -NVIM_LIGHT = "0" - -[font] -# normal = { family = "Comic Code" } -# normal = { family = "Lambda" } -# normal = { family = "Iosevka" } -normal = { family = "Aporetic Sans Mono" } -# normal = { family = "IosevkaInput" } -# italic = { family = "IosevkaInput", style = "W360 Oblique" } -size = 11 diff --git a/alacritty/dot-config/alacritty/dayfox.toml b/alacritty/dot-config/alacritty/dayfox.toml deleted file mode 100644 index 049bbc3..0000000 --- a/alacritty/dot-config/alacritty/dayfox.toml +++ /dev/null @@ -1,71 +0,0 @@ -# Nightfox Alacritty Colors -## name: dayfox -## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/dayfox/alacritty.toml - -[colors.primary] -background = "#f6f2ee" -foreground = "#3d2b5a" -dim_foreground = "#302b5d" -bright_foreground = "#643f61" - -[colors.cursor] -text = "#3d2b5a" -cursor = "#643f61" - -[colors.vi_mode_cursor] -text = "#3d2b5a" -cursor = "#287980" - -[colors.search.matches] -foreground = "#3d2b5a" -background = "#a4c1c2" - -[colors.search.focused_match] -foreground = "#3d2b5a" -background = "#396847" - -[colors.footer_bar] -foreground = "#3d2b5a" -background = "#d3c7bb" - -[colors.hints.start] -foreground = "#3d2b5a" -background = "#955f61" - -[colors.hints.end] -foreground = "#3d2b5a" -background = "#d3c7bb" - -[colors.selection] -text = "#3d2b5a" -background = "#e7d2be" - -[colors.normal] -black = "#352c24" -red = "#a5222f" -green = "#396847" -yellow = "#ac5402" -blue = "#2848a9" -magenta = "#6e33ce" -cyan = "#287980" -white = "#f2e9e1" - -[colors.bright] -black = "#534c45" -red = "#b3434e" -green = "#577f63" -yellow = "#b86e28" -blue = "#4863b6" -magenta = "#8452d5" -cyan = "#488d93" -white = "#f4ece6" - -[colors.dim] -black = "#2d251f" -red = "#8c1d28" -green = "#30583c" -yellow = "#924702" -blue = "#223d90" -magenta = "#5e2baf" -cyan = "#22676d" -white = "#cec6bf" diff --git a/alacritty/dot-config/alacritty/light.toml b/alacritty/dot-config/alacritty/light.toml deleted file mode 100644 index 34da037..0000000 --- a/alacritty/dot-config/alacritty/light.toml +++ /dev/null @@ -1,13 +0,0 @@ -[general] -import = [ "dayfox.toml" ] - -[window] -opacity = 1.0 - -[env] -NVIM_LIGHT = "1" - -[font] -normal = { family = "Hack" } -# italic = { family = "IosevkaInput", style = "W360 Oblique" } -size = 11 diff --git a/bash/dot-inputrc b/bash/dot-inputrc index f34320a..dce15b3 100644 --- a/bash/dot-inputrc +++ b/bash/dot-inputrc @@ -19,7 +19,7 @@ $endif set bell-style none -set completion-ignore-case on +set completion-ignore-case off set completion-query-items 150 set mark-symlinked-directories on diff --git a/lf/dot-config/lf/lfrc b/lf/dot-config/lf/lfrc index b03d235..4d5bd8f 100644 --- a/lf/dot-config/lf/lfrc +++ b/lf/dot-config/lf/lfrc @@ -1,5 +1,6 @@ # vim: ft=lf +set shell bash set shellopts '-eu' set ifs "\n" set autoquit true @@ -26,11 +27,11 @@ cmd mkdir $mkdir -p "$@" cmd extract ${{ set -f - filelist="" + filelist= while IFS= read -r filename; do filelist+=" $(basename "$filename")" done <<< "$fx" - if ouch decompress $fx; then + if ouch decompress "$fx"; then lf -remote "send $id echomsg \"Extracted"$filelist" with ouch.\"" else lf -remote "send $id echoerr \"Cannot extract"$filelist" with ouch.\"" diff --git a/niri/dot-config/niri/config.kdl b/niri/dot-config/niri/config.kdl index 33e6a4a..4afdfff 100644 --- a/niri/dot-config/niri/config.kdl +++ b/niri/dot-config/niri/config.kdl @@ -93,6 +93,8 @@ binds { Mod+X hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } Mod+B hotkey-overlay-title="Open browser" { spawn-sh "runapp -o qutebrowser"; } + Mod+Shift+B { spawn "toggle-waybar"; } + XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+ -l 1.0"; } XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"; } XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && update-led-mute sink"; } diff --git a/qute/dot-config/qutebrowser/config.py b/qute/dot-config/qutebrowser/config.py index 714fab2..8b6ce2c 100644 --- a/qute/dot-config/qutebrowser/config.py +++ b/qute/dot-config/qutebrowser/config.py @@ -48,12 +48,12 @@ config.bind( config.bind( ",m", - "spawn mpv {url}", + "spawn setsid runapp -o -- mpv {url}", ) config.bind( ",M", - "hint links spawn mpv {hint-url}", + "hint links spawn setsid runapp -o -- mpv {hint-url}", ) config.bind( diff --git a/scripts/.stow-local-ignore b/scripts/.stow-local-ignore new file mode 100644 index 0000000..8b7b2fa --- /dev/null +++ b/scripts/.stow-local-ignore @@ -0,0 +1,2 @@ +aconfmgr\-patcher +screenshot\-hypr diff --git a/waybar/dot-config/waybar/config.jsonc b/waybar/dot-config/waybar/config.jsonc index 5136b15..1d9be84 100644 --- a/waybar/dot-config/waybar/config.jsonc +++ b/waybar/dot-config/waybar/config.jsonc @@ -1,25 +1,24 @@ { - "position": "top", - "height": 15, + "position": "right", + "exclusive": false, + "layer": "top", + "margin": "5 2 5 0", + // "height": 18, "spacing": 5, "reload_style_on_change": true, "modules-left": [ - "hyprland/workspaces" - // "niri/workspaces" - ], - "modules-center": [ - "hyprland/window" - // "niri/window" ], "modules-right": [ + ], + "modules-center": [ + "niri/workspaces", "custom/weather", "idle_inhibitor", "wireplumber", "network", "power-profiles-daemon", "backlight", - "hyprland/language", - // "niri/language", + "niri/language", "battery", "tray", "clock" @@ -36,12 +35,13 @@ "spacing": 5 }, "clock": { - "interval": 1, - "format": "{:%a %d %b %H:%M:%S}", - "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>" + "interval": 60, + "format": "{:%a\n%d\n%b\n\n%H\n%M}", + "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", + "justify": "center" }, "backlight": { - "format": "{percent}% {icon}", + "format": "{icon}", "format-icons": [ "", "", @@ -59,18 +59,19 @@ "warning": 30, "critical": 10 }, - "format": "{capacity}% {icon}", - "format-full": "{capacity}% {icon}", - "format-charging": "{capacity}% ", - "format-plugged": "{capacity}% ", - "format-alt": "{power}W {icon}", + "format": "{icon}\n{capacity}", + "format-full": "{icon}", + "format-charging": "\n{capacity}%", + "format-plugged": "", + "format-alt": "{power}W\n{icon}", "format-icons": [ "", "", "", "", "" - ] + ], + "justify": "center" }, "power-profiles-daemon": { "format": "{icon}", @@ -83,15 +84,16 @@ } }, "network": { - "format-wifi": "{essid} ({signalStrength}%) ", + "format-wifi": "", "format-ethernet": "{ipaddr}/{cidr} ", "tooltip-format": "{ifname} via {gwaddr} ", "format-linked": "{ifname} (No IP) ", - "format-disconnected": "Disconnected ⚠", - "format-alt": "{ifname}: {ipaddr}/{cidr}" + "format-disconnected": "⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}", + "justify": "center" }, "wireplumber": { - "format": "{volume}% {icon}", + "format": "{icon}", "format-muted": "", "on-click": "app2unit-term -- bash -c 'wpctl status | less'", "on-click-right": "swayosd-client --output-volume mute-toggle && update-led-mute sink", @@ -109,22 +111,14 @@ "", "" ] - } - }, - "hyprland/language": { - "format": "{}", - "format-en": "en", - "format-fa": "فارسی" + }, + "justify": "center" }, "niri/language": { "format": "{}", "format-en": "en", "format-fa": "فارسی" }, - "hyprland/window": { - "icon": true, - "icon-size": 13 - }, "niri/window": { "icon": true, "icon-size": 13 diff --git a/waybar/dot-config/waybar/style.css b/waybar/dot-config/waybar/style.css index 9d5c585..a8769a1 100644 --- a/waybar/dot-config/waybar/style.css +++ b/waybar/dot-config/waybar/style.css @@ -1,13 +1,27 @@ +@define-color transp rgba(54, 54, 54, 0); +@define-color effort2 rgba(54, 54, 54, 0.8); +@define-color foreground #eeeeee; + * { - font-family: Hack, Vazirmatn UI; - font-size: 10px; - min-height: 0; - color: #eeeeee; + font-family: Dejavu Sans Mono, Vazirmatn UI; + font-size: 12px; + min-width: 0; } window#waybar { - /* background: rgba(0, 0, 0, 0.5); */ - background-color: #222222; + background-color: @transp; + background-blend-mode: screen; + color: @foreground; +} + +.modules-center { + background: @effort2; + background-blend-mode: overlay; + padding: 4px 2px; + margin: 0px 5px; + border-radius: 20px; + border: 2px solid #333333; + box-shadow: 0px 0px 3px 4px #222222; } tooltip { @@ -21,19 +35,21 @@ tooltip label { margin: 0; } -button { - border: none; - border-radius: 0; -} - /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ -button:hover { +#workspaces button:hover { background: inherit; } #workspaces button { - padding: 0 2px; + padding: 2px 2px; + border: none; + border-radius: 10px; background-color: transparent; + margin-bottom: 4px; +} + +#workspaces:last-child { + margin-bottom: 0px; } #workspaces button label { @@ -51,10 +67,7 @@ button:hover { #workspaces button.active:not(.empty) { background-color: #005577; - background-image: linear-gradient(white, white); /* the square */ - background-repeat: no-repeat; - background-size: 5px 5px; - background-position: 0px 0px; + border: 1px solid #0088aa; } #workspaces button.active label { @@ -63,22 +76,7 @@ button:hover { } #workspaces button:not(.active):not(.empty) { - background-image: - linear-gradient(white, white), /* top */ - linear-gradient(white, white), /* right */ - linear-gradient(white, white), /* bottom */ - linear-gradient(white, white); /* left */ - background-repeat: no-repeat; - background-size: - 5px 0.5px, /* top border width and thickness */ - 0.5px 5.5px, /* right */ - 5px 0.5px, /* bottom */ - 0.5px 5px; /* left */ - background-position: - 0px 0px, /* top */ - 5px 0px, /* right */ - 0px 5px, /* bottom */ - 0px 0px; /* left */ + border: 1px solid #444444; } @@ -104,30 +102,18 @@ button:hover { #scratchpad, #power-profiles-daemon, #mpd { - padding: 0 5px; + padding: 5 0px; } #clock { font-weight: bold; + border-top: 1px solid #777777; + padding-top: 10px; } #window, #workspaces { - margin: 0 4px; -} - -/* #window { */ -/* font-weight: bold; */ -/* } */ - -/* If workspaces is the leftmost module, omit left margin */ -.modules-left > widget:first-child > #workspaces { - margin-left: 0; -} - -/* If workspaces is the rightmost module, omit right margin */ -.modules-right > widget:last-child > #workspaces { - margin-right: 0; + margin: 4 0px; } @keyframes blink { @@ -148,18 +134,13 @@ button:hover { } #power-profiles-daemon.performance { - background-color: #f53c3c; - color: #ffffff; + color: #f53c3c; } label:focus { background-color: #000000; } -#temperature.critical { - background-color: #eb4d4b; -} - #tray > .passive { -gtk-icon-effect: dim; } @@ -170,17 +151,5 @@ label:focus { } #idle_inhibitor.activated { - background-color: #ecf0f1; - color: #2d3436; -} - -#workspaces .taskbar-window { - font-weight: normal; - padding-left: 5px; - padding-right: 5px; - margin-right: 0; -} - -#workspaces .taskbar-window.active { - background-color: rgba(255, 255, 255, 0.25); + color: #f53c3c; } diff --git a/wayland-basics/.stow-local-ignore b/wayland-basics/.stow-local-ignore new file mode 100644 index 0000000..097a3f5 --- /dev/null +++ b/wayland-basics/.stow-local-ignore @@ -0,0 +1,4 @@ +^/.config/satty +^/.config/systemd/user/minibar.service +^/.config/systemd/user/swayosd-server.service + diff --git a/wayland-basics/dot-config/environment.d/wayland.conf b/wayland-basics/dot-config/environment.d/wayland.conf index eca504e..e55cd48 100644 --- a/wayland-basics/dot-config/environment.d/wayland.conf +++ b/wayland-basics/dot-config/environment.d/wayland.conf @@ -2,14 +2,18 @@ BROWSER=qutebrowser TERMINAL=alacritty -# Wayland configurati +# QT app theming QT_QPA_PLATFORM=wayland -QT_QPA_PLATFORMTHEME=qt5ct +QT_QPA_PLATFORMTHEME=qt6ct;qt5ct + +# SDL SDL_VIDEODRIVER=wayland SDL_VIDEO_DRIVER=wayland + +# Ozone OZONE_PLATFORM=wayland ELECTRON_OZONE_PLATFORM_HINT=wayland # disable accessibility -export NO_AT_BRIDGE=1 -export GTK_A11Y=none +NO_AT_BRIDGE=1 +GTK_A11Y=none diff --git a/wayland-basics/dot-config/systemd/user/polkit-kde.service b/wayland-basics/dot-config/systemd/user/polkit-kde.service new file mode 100644 index 0000000..8b39695 --- /dev/null +++ b/wayland-basics/dot-config/systemd/user/polkit-kde.service @@ -0,0 +1,12 @@ +[Unit] +Description=KDE polkit authentication agent +PartOf=graphical-session.target +After=graphical-session.target + +[Service] +Type=exec +ExecStart=/usr/lib/polkit-kde-authentication-agent-1 +Restart=on-failure + +[Install] +WantedBy=graphical-session.target |
