diff options
author | Joe <rrbo@proton.me> | 2023-02-09 14:11:03 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-02-09 14:11:03 +0100 |
commit | 3ff5ecd5a6a05db2ebe78907894def52985fe6be (patch) | |
tree | 99ef6d5f625579191727c848d6d69adb071ce9bd /.config/openbox | |
parent | up (diff) | |
download | dotfiles-bsd-3ff5ecd5a6a05db2ebe78907894def52985fe6be.tar.gz dotfiles-bsd-3ff5ecd5a6a05db2ebe78907894def52985fe6be.tar.bz2 dotfiles-bsd-3ff5ecd5a6a05db2ebe78907894def52985fe6be.tar.xz dotfiles-bsd-3ff5ecd5a6a05db2ebe78907894def52985fe6be.tar.zst dotfiles-bsd-3ff5ecd5a6a05db2ebe78907894def52985fe6be.zip |
up
Diffstat (limited to '.config/openbox')
-rwxr-xr-x | .config/openbox/autostart | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/.config/openbox/autostart b/.config/openbox/autostart index fc6bee2..f80bc51 100755 --- a/.config/openbox/autostart +++ b/.config/openbox/autostart @@ -18,27 +18,25 @@ # select OS -os="$(uname)" - -case $os in - "Linux") grep "Artix" /etc/issue >/dev/null 2>&1 && os=1 || os=2 ;; - "FreeBSD") os=3 ;; -esac +os=$(cat /tmp/os) case $os in 1) icon=" " mpd="mpd" xscr="xscreensaver --no-splash" + sleep="sleep 0.5" ;; 2) icon=" " mpd="mpd" xscr="xscreensaver" + sleep="sleep 0.5" ;; 3) icon=" " mpd="musicpd" xscr="xscreensaver --no-splash" + sleep="gsleep 0.5" ;; esac @@ -47,7 +45,8 @@ startif() { } conkies() { - startif conky -d -c "$HOME"/.config/conky/conkyrc + conky -d -c "$HOME"/.config/conky/conkyrc + $sleep conky -d -c "$HOME"/.config/conky/conkyrss } @@ -66,9 +65,11 @@ xset -dpms # else # "$HOME"/.local/bin/dscr # fi -conkies startif tint2 +$sleep startif plank +$sleep +conkies & cd "$HOME" xrdb "$HOME"/.config/x11/xresources notify-send -u normal 'Welcome' "$icon Welcome back, partner!" |