Sway idle stuff - preparing to setup auto-hibernate/sleep for laptop

This commit is contained in:
Daniel Flanagan 2020-10-03 10:46:49 -05:00
parent 5cdebc9603
commit 7216b48388
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
3 changed files with 7 additions and 4 deletions

View file

@ -158,7 +158,6 @@ client.focused #66d9ef #66d9ef #66d9ef #66d9ef #66d9ef
client.focused_inactive #111111 #111111 #ffffff #111111 #111111 client.focused_inactive #111111 #111111 #ffffff #111111 #111111
client.unfocused #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 mako
exec gammastep -t 6500:3500 -l 39.0:-94.5 exec gammastep -t 6500:3500 -l 39.0:-94.5
exec_always makoctl reload exec_always makoctl reload

View file

@ -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 # shared
workspace 1 output DP-1 workspace 1 output DP-1
workspace 2 output DP-1 workspace 2 output DP-1

View file

@ -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 output eDP-1 res 1600x900 pos 0 0
bindswitch lid:toggle exec swaylock bindswitch lid:toggle exec swaylock
@ -14,5 +18,3 @@ input type:touchpad {
input type:keyboard { input type:keyboard {
xkb_options ctrl:nocaps xkb_options ctrl:nocaps
} }
exec libinput-gestures -c $DOTFILES_PATH/apps/de/libinput/sway-gestures.conf