dotfiles-pub/linux/.local/bin/autostart.sh

40 lines
666 B
Bash
Raw Normal View History

2022-11-08 16:36:46 +00:00
#!/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
2022-12-18 04:35:26 +00:00
#run xmousepasteblock
run xbindkeys -p
2022-11-08 16:36:46 +00:00
run flameshot
2022-12-18 04:35:26 +00:00
run gpick
run radeon-profile
2022-11-08 16:36:46 +00:00
if ! pgrep "nicotine" ; then
notify-send "autostart: starting nicotine"
2022-12-18 04:35:26 +00:00
gtk3-nocsd nicotine &
2022-11-08 16:36:46 +00:00
else
notify-send "autostart: nicotine already running"
fi