diff options
author | Joe <rrbo@proton.me> | 2023-02-03 10:41:05 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-02-03 10:41:05 +0100 |
commit | 4627b5b9dac58bd68c51390a4e286de17f3192ef (patch) | |
tree | cad2da58579bc1f808d957b359ec8c88beecadf2 /.config | |
parent | up (diff) | |
download | dotfiles-bsd-4627b5b9dac58bd68c51390a4e286de17f3192ef.tar.gz dotfiles-bsd-4627b5b9dac58bd68c51390a4e286de17f3192ef.tar.bz2 dotfiles-bsd-4627b5b9dac58bd68c51390a4e286de17f3192ef.tar.xz dotfiles-bsd-4627b5b9dac58bd68c51390a4e286de17f3192ef.tar.zst dotfiles-bsd-4627b5b9dac58bd68c51390a4e286de17f3192ef.zip |
up
Diffstat (limited to '.config')
-rwxr-xr-x | .config/openbox/autostart | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/.config/openbox/autostart b/.config/openbox/autostart index e462d2c..acb0dfc 100755 --- a/.config/openbox/autostart +++ b/.config/openbox/autostart @@ -16,6 +16,22 @@ # #xfce-mcs-manager & +# select OS +# 1: Artix +# 2: Pop OS +# 3: FreeBSD + +os="$(uname)" + +if [ "$os" = "Linux" ]; then + grep "Artix" /etc/issue >/dev/null 2>&1 && os=1 || os=2 +elif [ "$os" = "FreeBSD" ]; then + os=3 +else + echo "unknown OS" + exit 1 +fi + startif() { pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 & } @@ -25,11 +41,15 @@ delay_desktop() { startif conky -d -c "$HOME"/.config/conkyrc startif tint2 startif plank - startif idesk } export LANG='en_US.UTF-8' -pgrep musicpd >/dev/null || musicpd >/dev/null 2>&1 +case $os in + 1) icon=" " ;; + 2) icon=" " ;; + 3) icon=" " ;; +esac + startif dunst startif picom startif mpd-notification @@ -46,5 +66,6 @@ fi delay_desktop & cd "$HOME" xrdb "$HOME"/.config/x11/xresources + notify-send -u normal 'Welcome' " Welcome back, partner\!" # dbus-launch openbox |