dotfiles/awesome/autorun.sh

24 lines
520 B
Bash
Executable file

#!/bin/sh
run() {
if ! pgrep -f "$1" ;
then
"$@"&
fi
}
# Currently not working
# run "(pgrep alacritty && alacritty msg create-window --title bottom -e btm --battery || alacritty --title bottom -e btm --battery)"
/usr/sbin/alacritty --title bottom --command btm --battery &
/usr/sbin/alacritty --title awesome-startup &
run "cbatticon"
run "blueman-applet"
run "nm-applet"
run "nextcloud --background"
run "pasystray"
run "xscreensaver -no-splash"
run "sleep 4"
run "wmctrl -r bottom -t 8"
run "keepassxc"