update slock

This commit is contained in:
2026-11-05 15:22:19 +01:00
19 changed files with 1343 additions and 54 deletions
+47 -11
View File
@@ -25,17 +25,53 @@ xinput list --name-only | while IFS= read -r device; do
esac
done
# Start desktop services
bluetoothctl power off &
picom &
xbindkeys &
xss-lock -l slock &
feh --bg-scale "$HOME/Obrázky/wallpapers/glados.jpg" &
dwmblocks &
# ~~Keep this last: it replaces the script with dwm~~
exec dwm
# i really need it :(
export GPG_TTY=$(tty)
# Restart audio services before starting the status bar
systemctl --user restart wireplumber pipewire pipewire-pulse;pkill -RTMIN+2 dwmblocks
exec dbus-run-session -- sh -c '
export GPG_TTY=$(tty)
export PATH=$HOME/.local/bin:$PATH
if ! pgrep -a -u "$(id -u)" -x pipewire >/dev/null 2>&1; then
pipewire &
fi
sleep 1
pkill -RTMIN+2 dwmblocks
# Start desktop services
bluetoothctl power off &
if ! pgrep -a -u "$(id -u)" -x picom >/dev/null 2>&1; then
picom --backend glx &
fi
if ! pgrep -a -u "$(id -u)" -x dunst >/dev/null 2>&1; then
dunst &
fi
if ! pgrep -a -u "$(id -u)" -x mpv >/dev/null 2>&1; then
mpv --shuffle --pause --no-video --loop-playlist -ao=alsa $HOME/Music &
fi
if ! pgrep -a -u "$(id -u)" -x mpv-shuffle-notify >/dev/null 2>&1; then
mpv-shuffle-notify &
fi
if ! pgrep -a -u "$(id -u)" -x sxhkd >/dev/null 2>&1; then
sxhkd &
fi
xbindkeys &
# xss-lock -l slock &
if ! pgrep -a -u "$(id -u)" -x xss-lock >/dev/null 2>&1; then
xss-lock -- \
env XSECURELOCK_AUTHPROTO=authproto_pam \
XSECURELOCK_PAM_SERVICE=login \
XSECURELOCK_NO_PAM_RHOST=1 \
xsecurelock &
fi
feh --bg-scale "$HOME/Pictures/wallpapers/glados.jpg" &
exec dwm
'