forked from bbenne10/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xinitrc
executable file
·39 lines (32 loc) · 1.15 KB
/
xinitrc
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
# vim:set ft=sh:
test_and_run() {
if which "$1" >/dev/null; then
$@
fi
}
xmodmap ~/.xmodmap;
## MACHINE SPECIFIC STUFF =====================================================
if [ "$(hostname)" = "CTISL-bbennett-arch-desktop" ]; then
xrandr --output VGA1 --auto --rotate left --output HDMI1 --left-of VGA1 --auto --primary --output HDMI2 --right-of VGA1 --auto
test_and_run thunderbird &
fi
## FONTS ======================================================================
if [ -d /usr/share/fonts/local ]; then
xset fp+ /usr/share/fonts/local;
fi;
if [ -d ~/.fonts ]; then
xset fp+ ~/.fonts;
fi;
## EVERY MACHINE ==============================================================
test_and_run xrdb -load ~/.Xresources
test_and_run urxvtd -f -q -o
test_and_run compton -cCGfb --backend glx --paint-on-overlay --glx-no-stencil --vsync opengl-swc -b &
test_and_run xautolock -time 3 -locker sxlock &
test_and_run unclutter -noevents &
test_and_run nitrogen --restore
test_and_run firefox &
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
dbus-launch --sh-syntax --exit-with-session
fi
~/.bin/stat_line &
exec ~/.bin/dwm