feat(sway): update for new components

This commit is contained in:
2026-03-12 17:44:05 +01:00
parent 8cf31772a5
commit 4e765c57ff
4 changed files with 30 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ set $right l
# programs # programs
set $term ghostty set $term ghostty
set $menu wofi --show drun -iIG -w 2 set $menu fuzzel
set $browser google-chrome-stable set $browser google-chrome-stable
set $lockscreen swaylock set $lockscreen swaylock

View File

@@ -1,6 +1,6 @@
# sway # sway
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' bindsym $mod+Shift+e exec ~/.config/sway/scripts/power-menu.sh
floating_modifier $mod normal floating_modifier $mod normal
# programs # programs
@@ -10,6 +10,16 @@ bindsym $mod+u exec $lockscreen
bindsym $mod+Shift+Ctrl+Alt+space exec 1password --quick-access bindsym $mod+Shift+Ctrl+Alt+space exec 1password --quick-access
bindsym Print exec flameshot gui bindsym Print exec flameshot gui
# notifications
bindsym $mod+n exec swaync-client -t -sw
bindsym $mod+Shift+n exec swaync-client -C -sw
# clipboard
bindsym $mod+c exec cliphist list | fuzzel -d | cliphist decode | wl-copy
# eww popups
bindsym $mod+Escape exec ~/.config/eww/scripts/popup.sh close-all
# window # window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@@ -80,7 +90,7 @@ bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show bindsym $mod+minus scratchpad show
# xf86-volume # xf86-volume
bindsym --locked XF86AudioMute exec pamixer -t && pamixer --get-volume > $wobs bindsym --locked XF86AudioMute exec pamixer -t && ( pamixer --get-mute && echo 0 > $wobs || pamixer --get-volume > $wobs )
bindsym --locked XF86AudioLowerVolume exec pamixer -d 5 && pamixer --get-volume > $wobs bindsym --locked XF86AudioLowerVolume exec pamixer -d 5 && pamixer --get-volume > $wobs
bindsym --locked XF86AudioRaiseVolume exec pamixer -i 5 && pamixer --get-volume > $wobs bindsym --locked XF86AudioRaiseVolume exec pamixer -i 5 && pamixer --get-volume > $wobs
bindsym --locked F16 exec pamixer --default-source -t bindsym --locked F16 exec pamixer --default-source -t

View File

@@ -1,7 +1,10 @@
# daemon # daemon
exec eww daemon
exec swayidle -w exec swayidle -w
exec wlsunset -l 46.1 -L 14.5 exec wlsunset -l 46.1 -L 14.5
exec pkill -x wob; rm -f $wobs && mkfifo $wobs && tail -f $wobs | wob exec pkill -x wob; rm -f $wobs && mkfifo $wobs && tail -f $wobs | wob
exec swaync
exec wl-paste --watch cliphist store
exec protonmail-bridge -n exec protonmail-bridge -n
# traditional "start when os starts" programs # traditional "start when os starts" programs

13
sway/scripts/power-menu.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# power menu via fuzzel
choice=$(printf "lock\nlogout\nsuspend\nreboot\nshutdown" | fuzzel -d -p "power: ")
case "$choice" in
lock) swaylock ;;
logout) swaymsg exit ;;
suspend) systemctl suspend ;;
reboot) systemctl reboot ;;
shutdown) systemctl poweroff ;;
esac