sway: rework exec,exec_always blocks

This commit is contained in:
surtur 2022-10-17 22:22:02 +02:00
parent a0b1318b4a
commit fc0a380597
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -57,30 +57,62 @@ exec_always --no-startup-id
gsettings set org.gnome.desktop.interface icon-theme '$icon_theme'
gsettings set org.gnome.desktop.wm.preferences button-layout 'icon:close'
gsettings set org.gnome.desktop.wm.preferences theme '$theme'
# TODO add ~/.asdf/shims to PATH
pkill fusuma; XDG_SESSION_TYPE=x11 XDG_CURRENT_DESKTOP=gnome ~/.asdf/shims/fusuma -d -c ~/.config/fusuma/config-wl.yml
pkill autotiling; autotiling
pkill batsignal; batsignal '-d -w 25 -c 15 -d 10'
pkill swayidle; swayidle -w timeout 3600 "$lock" \
timeout 15 'pgrep swaylock && swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep "pgrep swaylock || $lockt"
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
pgrep -u $(id -u) kanshi && pkill kanshi
pgrep -u $(id -u) ibus-daemon && pkill ibus-daemon
ibus-daemon -dxrt auto
### Needed for xdg-desktop-portal-kde
dbus-update-activation-environment --systemd --all
/usr/lib/xdg-desktop-portal --replace
pgrep -u $(id -u) kdeconnect-indi && pkill kdeconnect-indi
pgrep -u $(id -u) mako && pkill mako
pgrep -u $(id -u) fusuma && pkill fusuma
pgrep -u $(id -u) swayrd && pkill swayrd
pgrep -u $(id -u) autotiling && pkill autotiling
pgrep -u $(id -u) batsignal && pkill batsignal
pgrep -u $(id -u) swayidle && pkill swayidle
kdeconnect-indicator
mako
XDG_SESSION_TYPE=x11 XDG_CURRENT_DESKTOP=gnome fusuma -d -c ~/.config/fusuma/config-wl.yml
env RUST_BACKTRACE=1 ~/.cargo/bin/swayrd > /tmp/swayrd.log 2>&1
kanshi
autotiling
batsignal '-d -w 25 -c 15 -d 10'
swayidle -w \
timeout 545 'pgrep -u $(id -u) swaylock || notify-send -t 15000 -u critical -i "Idle timeout" "Screen is locking soon"' \
timeout 600 "$lock" \
timeout 610 'swaymsg "output * dpms off"' \
timeout 15 'pgrep -u $(id -u) swaylock && swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep "pgrep -u $(id -u) swaylock || $lockt"
}
exec --no-startup-id {
nm-applet --indicator
lxpolkit
dbus-update-activation-environment DISPLAY XAUTHORITY
ibus-daemon -dxrt auto
$keyring
mako
# TODO add ~/.asdf/shims to PATH
XDG_SESSION_TYPE=x11 XDG_CURRENT_DESKTOP=gnome ~/.asdf/shims/fusuma -d -c ~/.config/fusuma/config-wl.yml
autotiling
batsignal '-d -w 25 -c 15 -d 10'
swayidle -w timeout 3600 "$lock" \
timeout 15 'pgrep swaylock && swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep "pgrep swaylock || $lockt"
### Needed for xdg-desktop-portal-kde
dbus-update-activation-environment --systemd --all
/usr/lib/xdg-desktop-portal --replace
pgrep -u $(id -u) kdeconnect-indi || kdeconnect-indicator
pgrep -u $(id -u) mako || mako
# XDG_SESSION_TYPE=x11 XDG_CURRENT_DESKTOP=gnome fusuma -d -c ~/.config/fusuma/config-wl.yml
pgrep -u $(id -u) fusuma || fusuma -d -c ~/.config/fusuma/config-wl.yml
env RUST_BACKTRACE=1 ~/.cargo/bin/swayrd > /tmp/swayrd.log 2>&1
pgrep -u $(id -u) kansi || kanshi
pgrep -u $(id -u) autotiling || autotiling
pgrep -u $(id -u) batsignal || batsignal '-d -w 25 -c 15 -d 10'
pgrep -u $(id -u) swayidle || swayidle -w \
timeout 545 'pgrep -u $(id -u) swaylock || notify-send -t 15000 -u critical -i "Idle timeout" "Screen is locking soon"' \
timeout 600 "$lock" \
timeout 610 'swaymsg "output * dpms off"' \
timeout 15 'pgrep -u $(id -u) swaylock && swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep "pgrep -u $(id -u) swaylock || $lockt"
}
bindsym ctrl+alt+l exec --no-startup-id $lock