aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/.install.yml22
-rw-r--r--sway/config2
2 files changed, 23 insertions, 1 deletions
diff --git a/sway/.install.yml b/sway/.install.yml
new file mode 100644
index 0000000..6924383
--- /dev/null
+++ b/sway/.install.yml
@@ -0,0 +1,22 @@
+name: Configure sway
+steps:
+ - !Link
+ from: "config"
+ to: "~/.config/sway/config"
+ recursive: false
+ - !Link
+ from: "scripts/exit-menu.sh"
+ to: "~/.config/sway/scripts/exit-menu.sh"
+ recursive: false
+ - !Copy
+ from: "wallpaper.jpg"
+ to: "~/.config/sway/wallpaper.jpg"
+ recursive: false
+ - !Copy
+ from: "input.cfg"
+ to: "~/.config/sway/input.cfg"
+ recursive: false
+ - !Copy
+ from: "output.cfg"
+ to: "~/.config/sway/output.cfg"
+ recursive: false \ No newline at end of file
diff --git a/sway/config b/sway/config
index 363e666..8d8a8d7 100644
--- a/sway/config
+++ b/sway/config
@@ -183,7 +183,7 @@ exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DE
exec swayidle -w \
timeout 300 "notify-send 'Power' 'System will suspend very soon due to inactivity.'" \
timeout 310 "swaylock" \
- timeout 315 "systemctl suspend" \
+ timeout 313 "swaymsg 'output * power off'" resume "swaymsg 'output * power on'" \
before-sleep "swaylock"
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1