37 lines
692 B
Bash
37 lines
692 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
COLORSCHEME="tokyonight"
|
||
|
|
||
|
run() {
|
||
|
if ! pgrep "$1" ;
|
||
|
then
|
||
|
notify-send "autostart: starting $1"
|
||
|
"$@" &
|
||
|
else
|
||
|
notify-send "autostart: $1 already running"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
notify-send "begin autostart"
|
||
|
|
||
|
xrdb ~/.config/xrdb/main.xrdb
|
||
|
xrdb -merge "~/.config/xrdb/colors/$COLORSCHEME.xrdb"
|
||
|
xmodmap -e "keysym Menu = Multi_key"
|
||
|
|
||
|
run pipewire
|
||
|
|
||
|
run picom --config ~/.config/picom.conf
|
||
|
run xscreensaver -no-splash
|
||
|
|
||
|
run xmousepasteblock
|
||
|
|
||
|
run flameshot
|
||
|
|
||
|
# manual pgrep because env vars
|
||
|
if ! pgrep "nicotine" ; then
|
||
|
notify-send "autostart: starting nicotine"
|
||
|
env GTK_CSD=0 LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0 nicotine &
|
||
|
else
|
||
|
notify-send "autostart: nicotine already running"
|
||
|
fi
|