chore(sway): exec sections clean-up

* improved monitor timeout behaviour - added a periodic check, only
  'dpms * off' when screen is locked
* rm docker-tray as we don't use it much and the status of docker is
  easily verified from the shell, should the need arise
* run waybar.sh as the swaybar_command
This commit is contained in:
surtur 2021-05-20 20:26:07 +02:00
parent 5d3a740b24
commit 32cfe71d6e
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -41,24 +41,19 @@ font pango:Cantarell 14px
exec_always --no-startup-id
{
pkill swayidle
pkill "docker-tray"
swaymsg output $pri bg $bg fill #000000
swaymsg output $sec bg $bg2 fill #000000
#swaymsg output $ter bg $bg
gsettings set org.gnome.desktop.interface gtk-theme '$gtk_theme'
gsettings set org.gnome.desktop.interface icon-theme '$icon_theme'
~/utils/docker-tray/docker-tray
# TODO add ~/.asdf/shims to PATH
pkill fusuma; ~/.asdf/shims/fusuma -d -c ~/.config/fusuma/config-wl.yml
pkill waybar; waybar
# autotiling -w 6 7 8
pkill autotiling; autotiling
pkill batsignal; batsignal '-d -w 15 -c 9 -d 5'
swayidle -w timeout 3600 "$lock" \
timeout 3610 'swaymsg "output * dpms off"' \
pkill swayidle; swayidle -w timeout 3600 "$lock" \
timeout 60 'pgrep swaylock && swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep "$lockt"
before-sleep "pgrep swaylock || $lockt"
}
exec --no-startup-id {
@ -479,7 +474,7 @@ bindsym
}
bar {
swaybar_command waybar
swaybar_command waybar.sh
}
include /etc/sway/config.d/*