diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 7e57adb..286e5a0 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -2,6 +2,7 @@ set $mod Mod4 set $term kitty # set $menu dmenu_path | wofi --show=run --matching fuzzy | 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 @@ -9,18 +10,13 @@ output * bg ~/.config/sway/wallpapers/mountains.jpg fill output eDP-1 scale 1.4 -### Idle configuration -# -# Example configuration: -# -# exec swayidle -w \ -# timeout 300 'swaylock -f -c 000000' \ -# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ -# 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. +exec sway-audio-idle-inhibit +exec swayidle -w \ + timeout 10 $lock \ + timeout 20 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ + before-sleep $lock + +bindsym Control+Mod1+l exec $lock bindsym $mod+p exec kitty -e python @@ -33,19 +29,6 @@ floating_modifier $mod normal bindsym $mod+Shift+c reload 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 { swaybar_command waybar position top