setup toggle for swayidle
This commit is contained in:
parent
2049dd3f7b
commit
bd204157f3
1 changed files with 11 additions and 7 deletions
|
@ -35,11 +35,12 @@ set $laptop eDP-1
|
|||
output * bg $background fill
|
||||
|
||||
### Idle configuration
|
||||
exec swayidle -w \
|
||||
timeout 900 '$lock -f' \
|
||||
timeout 3600 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep '$lock -f'
|
||||
#exec swayidle -w \
|
||||
# timeout 900 '$lock -f' \
|
||||
# timeout 3600 'swaymsg "output * dpms off"' \
|
||||
# resume 'swaymsg "output * dpms on"' \
|
||||
# before-sleep '$lock -f'
|
||||
exec /home/thrrgilag/bin/idle
|
||||
|
||||
#bindswitch --reload lid:on output $laptop disable
|
||||
#bindswitch --reload lid:off output $laptop enable
|
||||
|
@ -198,6 +199,9 @@ bindsym $mod+r mode "resize"
|
|||
|
||||
# screen lock
|
||||
bindsym $mod+Mod1+l exec "$lock -f"
|
||||
bindsym Scroll_Lock exec "$lock -f"
|
||||
bindsym $mod+Scroll_Lock exec pkill swayidle
|
||||
bindsym $mod+Mod1+Scroll_Lock exec /home/thrrgilag/bin/idle
|
||||
|
||||
# screenshots
|
||||
bindsym Print exec grim ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).png
|
||||
|
@ -232,7 +236,7 @@ bar {
|
|||
|
||||
include /etc/sway/config.d/*
|
||||
|
||||
exec nm-applet --indicator
|
||||
exec lxpolkit
|
||||
exec mako
|
||||
exec mako > /tmp/mako.log 2>&1
|
||||
exec nm-applet --indicator
|
||||
exec nextcloud
|
||||
|
|
Loading…
Reference in a new issue