diff options
| author | Shubham Saini <shubham6405@gmail.com> | 2020-02-16 08:19:33 +0000 |
|---|---|---|
| committer | Shubham Saini <shubham6405@gmail.com> | 2020-02-16 08:19:33 +0000 |
| commit | 74f672b39beb7c27ad2d4d7dfc6253449694f8d1 (patch) | |
| tree | 9af2b240f9ed9e59e448554aa5f3f812442a0d3d /x/.xinitrc | |
| parent | 55a4d6fcc7c2f3c613b1971cc6a66407096998f2 (diff) | |
shifted to void
Diffstat (limited to 'x/.xinitrc')
| -rw-r--r-- | x/.xinitrc | 24 |
1 files changed, 2 insertions, 22 deletions
| @@ -40,25 +40,5 @@ if [ -n "$DISPLAY" ]; then | |||
| 40 | xset b off | 40 | xset b off |
| 41 | fi | 41 | fi |
| 42 | 42 | ||
| 43 | # load additional configs | 43 | xsetroot -cursor_name left_ptr |
| 44 | if [ "$2" = "nvidia" ]; then | 44 | exec dbus-launch --sh-syntax --exit-with-x11 bspwm |
| 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 | |||
| 64 | exec bspwm | ||
