Update sway background stuff & add suspend

This commit is contained in:
askiiart 2024-08-21 22:11:44 -05:00
parent 87a96e1bc1
commit 11a0f4be10
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
5 changed files with 3 additions and 16 deletions

View file

@ -20,15 +20,3 @@ while [ "$(echo $outputs | jq -r .[$i])" != "null" ]; do
generate $height $width
((i++))
done

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
sway/backgrounds/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -26,13 +26,14 @@ for_window [window_role="task_dialog"] floating enable
# shutdown / restart / suspend...
set $lockwall "swaylock -i ~/.config/sway/backgrounds/widthxheight.png"
set $mode_system System (l) lock, (e) logout, (r) reboot, (s) shutdown
set $mode_system System (l) lock, (e) logout, (r) reboot, (s) shutdown, (u) suspend
mode "$mode_system" {
bindsym l exec --no-startup-id $lockwall, mode "default"
bindsym e exec --no-startup-id swaymsg exit, mode "default"
bindsym r exec --no-startup-id reboot, mode "default"
bindsym s exec --no-startup-id shutdown now, mode "default"
bindsym u exec --no-startup-id "swaylock -i ~/.config/sway/backgrounds/2560x1440.png -f; systemctl suspend", mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"

View file

@ -2,6 +2,4 @@ output "Acer Technologies EK271U E 14160766B3W01" mode 2560x1440@100hz adaptive_
output "Hewlett Packard HP ZR22w CN41250H24" transform 270
output "AU Optronics 0x463D" mode 1920x1080@60hz
output "Acer Technologies EK271U E 14160766B3W01" bg ~/.config/sway/backgrounds/2560x1440.png fill
output "Hewlett Packard HP ZR22w CN41250H24" bg ~/.config/sway/backgrounds/1080x1920.png fill
output "AU Optronics 0x463D" bg ~/.config/sway/backgrounds/1920x1080.png fill
output * bg ~/bg-generation/logo.png center #1E1E2E