summaryrefslogtreecommitdiff
path: root/x/.xinitrc
diff options
context:
space:
mode:
Diffstat (limited to 'x/.xinitrc')
-rw-r--r--x/.xinitrc24
1 files changed, 2 insertions, 22 deletions
diff --git a/x/.xinitrc b/x/.xinitrc
index 8626b1b..b32d4c8 100644
--- a/x/.xinitrc
+++ b/x/.xinitrc
@@ -40,25 +40,5 @@ if [ -n "$DISPLAY" ]; then
40 xset b off 40 xset b off
41fi 41fi
42 42
43# load additional configs 43xsetroot -cursor_name left_ptr
44if [ "$2" = "nvidia" ]; then 44exec dbus-launch --sh-syntax --exit-with-x11 bspwm
45 XINIT_D="/etc/X11/nvidia/xinit/xinitrc.d"
46else
47 XINIT_D="/etc/X11/xinit/xinitrc.d"
48fi
49
50if [ -d "$XINIT_D" ]; then
51 for f in "$XINIT_D/?*.sh" ; do
52 [ -x "$f" ] && . "$f"
53 done
54 unset f
55fi
56unset XINIT_D
57
58# additional nvidia specific settings
59if [ "$2" = "nvidia" ]; then
60 xrandr --setprovideroutputsource modesetting NVIDIA-0
61 xrandr --auto
62fi
63
64exec bspwm