blob: acb0dfc6e741b9abb8723807922707f012cf0868 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#
# 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
# 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 &
}
delay_desktop() {
sleep 5
startif conky -d -c "$HOME"/.config/conkyrc
startif tint2
startif plank
}
export LANG='en_US.UTF-8'
case $os in
1) icon=" " ;;
2) icon=" " ;;
3) icon=" " ;;
esac
startif dunst
startif picom
startif mpd-notification
# startif xscreensaver
"$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
delay_desktop &
cd "$HOME"
xrdb "$HOME"/.config/x11/xresources
notify-send -u normal 'Welcome' " Welcome back, partner\!"
# dbus-launch openbox
|