sway: enable swaylock

This commit is contained in:
Daniel Meiburg 2023-10-01 00:14:37 +02:00
parent da5f124c2d
commit 4864c2d855
Signed by: dm
GPG Key ID: E5827ECFFE0AA4F2
1 changed files with 9 additions and 10 deletions

View File

@ -37,11 +37,11 @@ output * bg ~/.config/sway/wallpaper.jpg fill
# #
# Example configuration: # Example configuration:
# #
# exec swayidle -w \ exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \ timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000' before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off # This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when # your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep. # resumed. It will also lock your screen before your computer goes to sleep.
@ -57,10 +57,9 @@ input type:keyboard {
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
bindsym $mod+Shift+b exec firefox bindsym $mod+Shift+b exec firefox
bindsym $mod+Shift+m exec MOZ_ENABLE_WAYLAND=1 thunderbird bindsym $mod+Shift+m exec MOZ_ENABLE_WAYLAND=1 thunderbird
bindsym $mod+Shift+p exec ~/bin/passmenu bindsym $mod+Shift+s exec shutdown -P now
bindsym $mod+Shift+s exec doas shutdown -P now bindsym $mod+Shift+r exec systemctl suspend
bindsym $mod+Shift+o exec flatpak run md.obsidian.Obsidian bindsym $mod+Shift+i exec swaylock -f -c 000000
bindsym $mod+Shift+r exec ~/bin/read_book
# Kill focused window # Kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@ -230,7 +229,7 @@ bar swaybar_command waybar
#exec_always /usr/libexec/kdeconnectd & #exec_always /usr/libexec/kdeconnectd &
exec_always "pkill kanshi; exec kanshi" exec_always "pkill kanshi; exec kanshi"
exec_always mako exec_always mako --default-timeout=5000 &
#exec gammastep-indicator -l 54.09:12.13 -t 6500:3000 & #exec gammastep-indicator -l 54.09:12.13 -t 6500:3000 &
#exec pipewire & #exec pipewire &
#exec wireplumber & #exec wireplumber &