Configure locking

This commit is contained in:
Andreas Tsouchlos 2024-05-04 00:47:28 +02:00
parent a79c078b80
commit af2bfb7032

View File

@ -2,6 +2,7 @@ set $mod Mod4
set $term kitty set $term kitty
# set $menu dmenu_path | wofi --show=run --matching fuzzy | xargs swaymsg exec -- # set $menu dmenu_path | wofi --show=run --matching fuzzy | xargs swaymsg exec --
set $menu dmenu_path | wofi --show=run --matching | xargs swaymsg exec -- set $menu dmenu_path | wofi --show=run --matching | xargs swaymsg exec --
set $lock swaylock --screenshot --effect-blur 10x10 --effect-vignette 0.5:1 --ring-color 3c3836 --key-hl-color d65e0e -f
#xwayland disable #xwayland disable
@ -9,18 +10,13 @@ output * bg ~/.config/sway/wallpapers/mountains.jpg fill
output eDP-1 scale 1.4 output eDP-1 scale 1.4
### Idle configuration exec sway-audio-idle-inhibit
# exec swayidle -w \
# Example configuration: timeout 10 $lock \
# timeout 20 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
# exec swayidle -w \ before-sleep $lock
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ bindsym Control+Mod1+l exec $lock
# before-sleep 'swaylock -f -c 000000'
#
# 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
# resumed. It will also lock your screen before your computer goes to sleep.
bindsym $mod+p exec kitty -e python bindsym $mod+p exec kitty -e python
@ -33,19 +29,6 @@ floating_modifier $mod normal
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec --no-startup-id i3-msg exit bindsym $mod+Shift+e exec --no-startup-id i3-msg exit
#bar {
# position top
#
# # When the status_command prints a new line to stdout, swaybar updates.
# # The default just shows the current date and time.
# status_command while date +'%Y-%m-%d %X'; do sleep 1; done
#
# colors {
# statusline #ffffff
# background #323232
# inactive_workspace #32323200 #32323200 #5c5c5c
# }
#}
bar { bar {
swaybar_command waybar swaybar_command waybar
position top position top