Fix swaylock wallpaper

This commit is contained in:
lelgenio 2020-09-30 18:15:58 -03:00
parent 9471ad2c1a
commit 5603dc6fea
1 changed files with 9 additions and 4 deletions

View File

@ -25,11 +25,13 @@
# set $menu bmenu run $term
font {{@@ font.interface @@}} 14px
set $wallPath ~/.local/share/wallpapers/assembly.png
# }}}
# Output configuration {{{
#
# output * bg '#252525' solid_color
output * bg ~/.local/share/wallpapers/assembly.png fit
output * bg $wallPath fit
# Output HDMI-A-1 resolution 1280x720
# Disable laptop screen if closed, --reload is important
@ -104,7 +106,7 @@
bindsym $mod+Shift+c reload
# Lock Sway
bindsym $mod+Control+$suspend exec loginctl suspend
bindsym $mod+Control+$suspend exec loginctl suspend || systemctl suspend
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+q exec swaynag -t warning -m 'Do you really want to exit sway?' -b 'Yes, exit sway' 'swaymsg exit'
@ -332,13 +334,16 @@
# Music Player Daemon
exec sh -c 'pgrep mpd || mpd'
exec sh -c 'pgrep mpDris2|| mpDris2'
# lock screen after a period of inactivity execp for fullscreen
for_window [class=.*] inhibit_idle fullscreen
set $slock swaylock -f --image $wallPath
exec swayidle -w \
before-sleep 'swaylock -f' \
before-sleep '$slock' \
after-resume 'sleep 10s; swaymsg reload' \
lock swaylock \
timeout 1800 'swaylock -f' \
timeout 1800 '$slock' \
# timeout 1800 'swaymsg "output * dpms off"' \
# resume 'swaymsg "output * dpms on;reload"' \