sway: mass update

This commit is contained in:
Jeremy Baxter 2025-04-30 09:57:54 +12:00
parent bf64e645fc
commit 07d4cd07f4

View file

@ -1,10 +1,12 @@
include /etc/sway/config.d/*
### Autostart
exec emacs --daemon
exec gpg-agent
exec kwalletd6
exec mako
exec pipewire
exec wireplumber
exec gpg-agent
### Variables
@ -54,7 +56,7 @@ gaps inner $gappx
gaps outer $gappx
### Output configuration
output * bg /home/jeremy/pix/openbsd/green_sea_turtle.JPG fill
output * bg /home/jeremy/jeremy/home/jeremy/pix/camera/Whakatane-2023/IMG_0208.JPG fill
### Key bindings
@ -72,24 +74,33 @@ bindsym $mod+r exec $menu
# Take a screenshot
bindsym $mod+p exec $shot copy area
bindsym $mod+Shift+p exec $shot save area
bindsym $mod+Mod1+p exec $shot save area
# Change sound volume
set $volume wpctl set-volume -l 1.2 @DEFAULT_AUDIO_SINK@
bindsym $mod+f1 exec $volume 0%
bindsym $mod+f2 exec $volume 10%-
bindsym $mod+f3 exec $volume 10%+
set $showvolume notify-send -t 200 $(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print $2}')
bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindsym XF86AudioLowerVolume exec $volume 5%- && $showvolume
bindsym XF86AudioRaiseVolume exec $volume 5%+ && $showvolume
# Pause/play cmus
bindsym $mod+Shift+z exec cmus-remote -C player-pause
# Pause/play music
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# Change screen brightness
bindsym $mod+f4 exec brightnessctl set 5%-
bindsym $mod+f5 exec brightnessctl set 5%+
bindsym XF86MonBrightnessDown exec brightnessctl set 10%-
bindsym XF86MonBrightnessUp exec brightnessctl set 10%+
# Lock
bindsym $mod+Mod1+l exec swaylock
# Dismiss notifications
bindsym $mod+Shift+a exec makoctl dismiss -a
# Date
bindsym $mod+u exec date "+%A %m/%d|%T" | xargs -d'|' notify-send -t 5000
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
@ -157,10 +168,10 @@ bindsym $mod+a focus parent
### Colors
# target title bg text indicator border
client.focused $lavender $base $text $rosewater $yellow
client.focused_inactive $overlay0 $base $text $rosewater $base
client.unfocused $overlay0 $base $text $rosewater $mantle
client.urgent $peach $base $peach $overlay0 $peach
client.focused $lavender $base $text $rosewater #1e66f5
client.focused_inactive $overlay0 $base $text $rosewater #eff1f5
client.unfocused $overlay0 $base $text $rosewater #eff1f5
client.urgent $peach $base $peach $overlay0 $text
client.placeholder $overlay0 $base $text $overlay0 $overlay0
client.background $base