# # These things are run when an Openbox X Session is started. # You may place a similar script in $HOME/.config/openbox/autostart # to run user-specific things. # # If you want to use GNOME config tools... # #if test -x /usr/lib/openbox/gnome-settings-daemon >/dev/null; then # /usr/lib/openbox/gnome-settings-daemon & #elif which gnome-settings-daemon >/dev/null 2>&1; then # gnome-settings-daemon & #fi # If you want to use XFCE config tools... # #xfce-mcs-manager & # select OS os="$(uname)" case $os in "Linux") grep "Artix" /etc/issue >/dev/null 2>&1 && os=1 || os=2 ;; "FreeBSD") os=3 ;; esac case $os in 1) icon=" " mpd="mpd" xscr="xscreensaver --no-splash" ;; 2) icon=" " mpd="mpd" xscr="xscreensaver" ;; 3) icon=" " mpd="musicpd" xscr="xscreensaver --no-splash" ;; esac startif() { pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 & } export LANG='en_US.UTF-8' startif dunst startif picom startif mpd-notification pgrep $mpd >/dev/null || $mpd >/dev/null 2>&1 startif $xscr "$HOME"/.local/bin/setwp "$HOME"/pics/wp.jpg "$HOME"/.local/bin/kb xset s off xset -dpms # if xrandr | grep -F 'DisplayPort-0 connected' >/dev/null 2>&1; then # "$HOME"/.local/bin/scr # else # "$HOME"/.local/bin/dscr # fi startif conky -d -c "$HOME"/.config/conkyrc startif tint2 startif plank cd "$HOME" xrdb "$HOME"/.config/x11/xresources notify-send -u normal 'Welcome' "$icon Welcome back, partner!"