From 7216b483886d01edf0a95969ce6fa8dee1f8c7b0 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 3 Oct 2020 10:46:49 -0500 Subject: [PATCH] Sway idle stuff - preparing to setup auto-hibernate/sleep for laptop --- apps/de/sway/config | 1 - env/desktop/sway/config.d/main | 2 ++ env/laptop/sway/config.d/main | 8 +++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/de/sway/config b/apps/de/sway/config index 3ddb841..35953d1 100644 --- a/apps/de/sway/config +++ b/apps/de/sway/config @@ -158,7 +158,6 @@ client.focused #66d9ef #66d9ef #66d9ef #66d9ef #66d9ef client.focused_inactive #111111 #111111 #ffffff #111111 #111111 client.unfocused #111111 #111111 #ffffff #111111 #111111 -exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' exec mako exec gammastep -t 6500:3500 -l 39.0:-94.5 exec_always makoctl reload diff --git a/env/desktop/sway/config.d/main b/env/desktop/sway/config.d/main index 790d314..711dbc7 100644 --- a/env/desktop/sway/config.d/main +++ b/env/desktop/sway/config.d/main @@ -1,3 +1,5 @@ +exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' + # shared workspace 1 output DP-1 workspace 2 output DP-1 diff --git a/env/laptop/sway/config.d/main b/env/laptop/sway/config.d/main index 048496c..e3e1218 100644 --- a/env/laptop/sway/config.d/main +++ b/env/laptop/sway/config.d/main @@ -1,4 +1,8 @@ -# TODO: setup displays +exec libinput-gestures -c $DOTFILES_PATH/apps/de/libinput/sway-gestures.conf + +# exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' + +# TODO: setup displays (when docked for work?) output eDP-1 res 1600x900 pos 0 0 bindswitch lid:toggle exec swaylock @@ -14,5 +18,3 @@ input type:touchpad { input type:keyboard { xkb_options ctrl:nocaps } - -exec libinput-gestures -c $DOTFILES_PATH/apps/de/libinput/sway-gestures.conf