feat(sway): update for new components
This commit is contained in:
@@ -8,7 +8,7 @@ set $right l
|
||||
|
||||
# programs
|
||||
set $term ghostty
|
||||
set $menu wofi --show drun -iIG -w 2
|
||||
set $menu fuzzel
|
||||
set $browser google-chrome-stable
|
||||
set $lockscreen swaylock
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# sway
|
||||
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
|
||||
|
||||
# programs
|
||||
@@ -10,6 +10,16 @@ bindsym $mod+u exec $lockscreen
|
||||
bindsym $mod+Shift+Ctrl+Alt+space exec 1password --quick-access
|
||||
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
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
@@ -80,7 +90,7 @@ bindsym $mod+Shift+minus move scratchpad
|
||||
bindsym $mod+minus scratchpad show
|
||||
|
||||
# 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 XF86AudioRaiseVolume exec pamixer -i 5 && pamixer --get-volume > $wobs
|
||||
bindsym --locked F16 exec pamixer --default-source -t
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# daemon
|
||||
exec eww daemon
|
||||
exec swayidle -w
|
||||
exec wlsunset -l 46.1 -L 14.5
|
||||
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
|
||||
|
||||
# traditional "start when os starts" programs
|
||||
|
||||
13
sway/scripts/power-menu.sh
Executable file
13
sway/scripts/power-menu.sh
Executable 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
|
||||
Reference in New Issue
Block a user