1
0
Fork 0
dotfiles/.local/libexec/dwm/autostart.sh

43 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/sh
2024-02-02 19:25:59 +01:00
# This script is executed by DWM on start.
2024-02-03 17:52:59 +01:00
start() {
2024-02-03 18:09:40 +01:00
pidof -sx "$1" || "$@" &
2024-02-03 17:52:59 +01:00
}
remaps -qd
xwallpaper --zoom "$XDG_DATA_HOME/bg"
unclutter -noevents &
2024-02-03 17:52:59 +01:00
start gpgconf --launch gpg-agent
2024-02-03 18:16:00 +01:00
start dwmblocks
start picom
2024-02-03 17:52:59 +01:00
start pipewire
start dunst
# Set up xsecurelock
xset s 300
env \
XSECURELOCK_AUTH_BACKGROUND_COLOR="#24283b" \
XSECURELOCK_AUTH_FOREGROUND_COLOR="#c0caf5" \
XSECURELOCK_AUTH_WARNING_COLOR="#f7768e" \
XSECURELOCK_BACKGROUND_COLOR="#15161E" \
XSECURELOCK_DATETIME_FORMAT="%d.%m.%Y %H:%M" \
XSECURELOCK_PASSWORD_PROMPT="time_hex" \
XSECURELOCK_AUTH_TIMEOUT=5 \
XSECURELOCK_BLANK_TIMEOUT=30 \
XSECURELOCK_BLANK_DPMS_STATE="off" \
XSECURELOCK_BURNIN_MITIGATION=0 \
XSECURELOCK_DIM_FPS=60 \
XSECURELOCK_SHOW_DATETIME=1 \
XSECURELOCK_SAVER="/usr/libexec/xscreensaver/cubicgrid" \
XSECURELOCK_SHOW_USERNAME=1 \
XSECURELOCK_SHOW_HOSTNAME=1 \
xss-lock -n /usr/libexec/xsecurelock/dimmer -l -- sh -c "xsecurelock -- playerctl pause || kill -9 -1" &
# Run host autostart
2024-02-02 19:25:59 +01:00
[ -r "$XDG_CONFIG_HOME/dwm/host.sh" ] && "$XDG_CONFIG_HOME/dwm/host.sh" &
# Check for updates
checkup &