sway: rework exec,exec_always blocks
This commit is contained in:
parent
a0b1318b4a
commit
fc0a380597
@ -57,30 +57,62 @@ exec_always --no-startup-id
|
|||||||
gsettings set org.gnome.desktop.interface icon-theme '$icon_theme'
|
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 button-layout 'icon:close'
|
||||||
gsettings set org.gnome.desktop.wm.preferences theme '$theme'
|
gsettings set org.gnome.desktop.wm.preferences theme '$theme'
|
||||||
# TODO add ~/.asdf/shims to PATH
|
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
|
||||||
pkill fusuma; XDG_SESSION_TYPE=x11 XDG_CURRENT_DESKTOP=gnome ~/.asdf/shims/fusuma -d -c ~/.config/fusuma/config-wl.yml
|
|
||||||
pkill autotiling; autotiling
|
pgrep -u $(id -u) kanshi && pkill kanshi
|
||||||
pkill batsignal; batsignal '-d -w 25 -c 15 -d 10'
|
pgrep -u $(id -u) ibus-daemon && pkill ibus-daemon
|
||||||
pkill swayidle; swayidle -w timeout 3600 "$lock" \
|
ibus-daemon -dxrt auto
|
||||||
timeout 15 'pgrep swaylock && swaymsg "output * dpms off"' \
|
### 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"' \
|
resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep "pgrep swaylock || $lockt"
|
before-sleep "pgrep -u $(id -u) swaylock || $lockt"
|
||||||
}
|
}
|
||||||
|
|
||||||
exec --no-startup-id {
|
exec --no-startup-id {
|
||||||
nm-applet --indicator
|
nm-applet --indicator
|
||||||
lxpolkit
|
lxpolkit
|
||||||
dbus-update-activation-environment DISPLAY XAUTHORITY
|
dbus-update-activation-environment DISPLAY XAUTHORITY
|
||||||
|
ibus-daemon -dxrt auto
|
||||||
$keyring
|
$keyring
|
||||||
mako
|
### Needed for xdg-desktop-portal-kde
|
||||||
# TODO add ~/.asdf/shims to PATH
|
dbus-update-activation-environment --systemd --all
|
||||||
XDG_SESSION_TYPE=x11 XDG_CURRENT_DESKTOP=gnome ~/.asdf/shims/fusuma -d -c ~/.config/fusuma/config-wl.yml
|
/usr/lib/xdg-desktop-portal --replace
|
||||||
autotiling
|
pgrep -u $(id -u) kdeconnect-indi || kdeconnect-indicator
|
||||||
batsignal '-d -w 25 -c 15 -d 10'
|
pgrep -u $(id -u) mako || mako
|
||||||
swayidle -w timeout 3600 "$lock" \
|
# XDG_SESSION_TYPE=x11 XDG_CURRENT_DESKTOP=gnome fusuma -d -c ~/.config/fusuma/config-wl.yml
|
||||||
timeout 15 'pgrep swaylock && swaymsg "output * dpms off"' \
|
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"' \
|
resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep "pgrep swaylock || $lockt"
|
before-sleep "pgrep -u $(id -u) swaylock || $lockt"
|
||||||
}
|
}
|
||||||
|
|
||||||
bindsym ctrl+alt+l exec --no-startup-id $lock
|
bindsym ctrl+alt+l exec --no-startup-id $lock
|
||||||
|
Loading…
Reference in New Issue
Block a user