From 7eabc900314cd93042f78123fe12ad2771050333 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 31 Jan 2023 11:46:19 +0100 Subject: Pop update --- .config/openbox/autostart | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to '.config/openbox/autostart') diff --git a/.config/openbox/autostart b/.config/openbox/autostart index 4bc1506..0be8a58 100755 --- a/.config/openbox/autostart +++ b/.config/openbox/autostart @@ -15,3 +15,43 @@ # If you want to use XFCE config tools... # #xfce-mcs-manager & +startif() { + pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 & +} + +delay_desktop() { + sleep 5 + startif conky -d -c "$HOME"/.config/conkyrc + startif tint2 + # startif cairo-clock -x 900 -y 20 --width 300 --height 300 --theme zen + # startif cairo-dock + startif plank + startif idesk +} + +export LANG='en_US.UTF-8' +pgrep musicpd >/dev/null || musicpd >/dev/null 2>&1 +"$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 +# xsetroot -name 'Loading bar...' +startif dunst +startif picom +# startif lowbat +# startif mpd-notification +startif xscreensaver +delay_desktop & +# startif dwmblocks +# startif sb-updatempd +# /compat/linux/usr/lib/protonmail/bridge/proton-bridge --noninteractive +# ekb +cd "$HOME" +xrdb "$HOME"/.config/x11/xresources +notify-send -u normal 'Welcome' " Welcome back, partner\!" +# dbus-launch openbox -- cgit v1.2.3