diff --git a/sway/automation.sh b/sway/automation.sh index a3a5916..a7272b7 100644 --- a/sway/automation.sh +++ b/sway/automation.sh @@ -20,15 +20,3 @@ while [ "$(echo $outputs | jq -r .[$i])" != "null" ]; do generate $height $width ((i++)) done - - - - - - - - - - - - diff --git a/sway/backgrounds/background.png b/sway/backgrounds/background.png new file mode 100644 index 0000000..c6eb605 Binary files /dev/null and b/sway/backgrounds/background.png differ diff --git a/sway/backgrounds/logo.png b/sway/backgrounds/logo.png new file mode 100644 index 0000000..ef83a2e Binary files /dev/null and b/sway/backgrounds/logo.png differ diff --git a/sway/config b/sway/config index 1f176e1..3ca3540 100644 --- a/sway/config +++ b/sway/config @@ -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" diff --git a/sway/config.d/outputs b/sway/config.d/outputs index d2e9c48..9793f79 100644 --- a/sway/config.d/outputs +++ b/sway/config.d/outputs @@ -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