From 6aaea9cf4b283d41016e60735f52c8feb3cd0c9e Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 22 Aug 2023 19:46:15 +0100 Subject: Initial commit --- .config/qtile/autostart.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 .config/qtile/autostart.sh (limited to '.config/qtile/autostart.sh') 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 \*' & -- cgit v1.2.3