1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2024-11-22 00:10:59 +02:00

New swaylock

This commit is contained in:
Arti Zirk 2019-07-11 15:10:46 +03:00
parent 915124d40a
commit a20cef8319

View File

@ -20,6 +20,14 @@ font pango:xos4 Terminus 12
# Background image # Background image
set $bg "~/Pildid/background.png" set $bg "~/Pildid/background.png"
# Uses forked swaylock https://github.com/mortie/swaylock-effects
set $lockcmd swaylock --clock --datestr "%Y-%m-%d" --indicator \
--image ~/Pildid/background.png --tiling \
--hide-keyboard-layout --font 'xos4 Terminus' --font-size 28 \
--text-color ffffff \
--inside-color 435366 --separator-color 435366 --ring-color 435366 \
--line-uses-ring
# Your preferred terminal emulator # Your preferred terminal emulator
set $term gnome-terminal set $term gnome-terminal
# Your preferred application launcher # Your preferred application launcher
@ -56,13 +64,15 @@ exec ~/code/dropbox-filesystem-fix/dropbox_start.py
### Idle configuration ### Idle configuration
exec swayidle \ exec swayidle \
timeout 300 'swaylock -c 333333 -s tile -i $bg' \ timeout 300 '$lockcmd' \
timeout 600 'swaymsg "output * dpms off"' \ timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -c 333333 -s tile -i $bg' before-sleep '$lockcmd' \
lock '$lockcmd' \
unlock 'pkill -9 swaylock'
# Lock screen with scroll lock button # Lock screen with scroll lock button
bindsym Scroll_Lock exec swaylock -c 333333AA -s tile -i $bg bindsym Scroll_Lock exec $lockcmd
# Alt+Tab window switcher # Alt+Tab window switcher
bindsym Alt+Tab exec ~/.bin/switch_window.py bindsym Alt+Tab exec ~/.bin/switch_window.py