diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-02-23 12:50:14 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-02-23 12:50:14 +0000 |
commit | 4186d162bd2cc3b9b45851c12462f1acba090852 (patch) | |
tree | 0af2951ccd9b252df8c2f9eb9115552fe010278d /x/.xinitrc | |
parent | be33df44d5893ac9576d937c30176e8840a8035e (diff) |
gentoo:time wasted
Diffstat (limited to 'x/.xinitrc')
-rw-r--r-- | x/.xinitrc | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -40,6 +40,25 @@ if [ -n "$DISPLAY" ]; then | |||
40 | xset b off | 40 | xset b off |
41 | fi | 41 | fi |
42 | 42 | ||
43 | xsetroot -cursor_name left_ptr | 43 | # load additional configs |
44 | xset +fp /usr/share/fonts/liberation-fonts | 44 | if [ "$2" = "nvidia" ]; then |
45 | XINIT_D="/etc/X11/nvidia/xinit/xinitrc.d" | ||
46 | else | ||
47 | XINIT_D="/etc/X11/xinit/xinitrc.d" | ||
48 | fi | ||
49 | |||
50 | if [ -d "$XINIT_D" ]; then | ||
51 | for f in "$XINIT_D/?*.sh" ; do | ||
52 | [ -x "$f" ] && . "$f" | ||
53 | done | ||
54 | unset f | ||
55 | fi | ||
56 | unset XINIT_D | ||
57 | |||
58 | # additional nvidia specific settings | ||
59 | if [ "$2" = "nvidia" ]; then | ||
60 | xrandr --setprovideroutputsource modesetting NVIDIA-0 | ||
61 | xrandr --auto | ||
62 | fi | ||
63 | |||
45 | exec bspwm | 64 | exec bspwm |