blob: e0e38340890626bf17725b6800f3f1a356d198ae (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# vim: ft=sh
#
# 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
case $(hostname -s) in
mother)
icon=" "
mpd="mpd"
xscr="xscreensaver --no-splash"
sleep="sleep 1"
ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1"
;;
po-rbo)
icon=" "
mpd="mpd"
xscr="xscreensaver"
sleep="sleep 1"
ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1"
;;
mars)
icon=" "
mpd="musicpd"
xscr="xscreensaver --no-splash"
sleep="gsleep 1"
ping="ping -c1 -t1 9.9.9.9 >/dev/null 2>&1"
;;
esac
$ping && git --git-dir="$HOME"/docs/dotfiles-bsd --work-tree="$HOME" pull
startif() {
pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 &
}
export LANG='en_US.UTF-8'
[ "$(hostname -s)" = "mother" ] && xrandr --output HDMI-0 --off \
--output DP-0 --mode 1440x900 --pos 0x0 --rotate normal \
--output DP-2 --mode 1440x900 --pos 3120x0 --rotate normal \
--output DP-4 --primary --mode 1680x1050 --pos 1440x0 --rotate normal \
--output DP-1 --off \
--output DP-3 --off \
--output DP-5 --off
[ "$(hostname -s)" = "po-rbo" ] && xrandr \
--output eDP-1 --mode 1920x1200 --pos 5120x0 --rotate normal \
--output DP-1 --mode 2560x1440 --pos 0x0 --rotate normal \
--output HDMI-1 --primary --mode 2560x1440 --pos 2560x0 --rotate normal \
--output HDMI-2 --off \
--output VIRTUAL-1 --off
startif doas service wireguard start
startif dunst
startif picom
startif mpd-notification
pgrep $mpd >/dev/null || $mpd >/dev/null 2>&1
"$HOME"/.local/bin/setwp "$HOME"/pics/the_wall.png
"$HOME"/.local/bin/kb
xset s off
xset -dpms
sleep 2
startif $xscr
$sleep
startif tint2
$sleep
startif plank
$sleep
startif conky -d -c "$HOME"/.config/conky/conkyrc
$sleep
startif pipewire
$sleep
startif pipewire-pulse
$sleep
startif wireplumber
$sleep
startif copyq
$sleep
startif nextcloud
cd "$HOME"
xrdb "$HOME"/.config/x11/xresources
notify-send -u normal 'Welcome' "$icon Welcome back, partner!"
|