diff options
author | Justine Smithies <justine@smithies.me.uk> | 2023-08-22 19:46:15 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2023-08-22 19:46:15 +0100 |
commit | 6aaea9cf4b283d41016e60735f52c8feb3cd0c9e (patch) | |
tree | ffc170bb7f267247b60908ac9125fcc02175afd9 /.config/qtile/autostart.sh | |
parent | 86c0c3694c93025dfec23f27266905c12f446a4e (diff) |
Initial commit
Diffstat (limited to '.config/qtile/autostart.sh')
-rwxr-xr-x | .config/qtile/autostart.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.config/qtile/autostart.sh b/.config/qtile/autostart.sh new file mode 100755 index 0000000..ebd7534 --- /dev/null +++ b/.config/qtile/autostart.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +# Autostart script for Qtile + +export wallpaper='~/.cache/wallpaper' + +dbus-update-activation-environment --systemd \ + WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP + +# Authentication dialog + +pkill -f /usr/libexec/polkit-gnome-authentication-agent-1 +/usr/libexec/polkit-gnome-authentication-agent-1 & + +# Kill any existing pipewire / wireplumber daemons and only then try to start a new set. + +pkill -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1 +dbus-run-session pipewire &> /dev/null & + +# Kanshi + +pkill -f kanshi +kanshi & + +# Notification daemon + +pkill -f dunst +dunst & + +# wlsunset + +pkill -f wlsunset +wlsunset -l 57.4 -L -1.9 & + +# Swayidle daemon + +pkill -f swayidle +swayidle \ + timeout 5 'qtile cmd-obj -o core -f hide_cursor' resume 'qtile cmd-obj -o core -f unhide_cursor' \ + timeout 300 'swaylock -f -i $wallpaper' \ + timeout 600 'wlopm --off \*' resume 'wlopm --on \*' & |