diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-04-18 04:02:11 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-04-18 04:02:11 +0000 |
commit | 1ff38305dd4020212e8a2bad29754f13b37153b3 (patch) | |
tree | 1928f87fcc49f7a04b251bff648b727680419ab1 /x | |
parent | 795ab6b47e1f0e9ee7332450a2dec65c96b85aab (diff) |
spectrwm
Diffstat (limited to 'x')
-rw-r--r-- | x/.xinitrc | 68 |
1 files changed, 4 insertions, 64 deletions
@@ -1,65 +1,5 @@ | |||
1 | #!/bin/sh | 1 | xrdb ~/.Xresources & |
2 | 2 | compton & | |
3 | userresources=$HOME/.Xresources | 3 | urxvtd & |
4 | usermodmap=$HOME/.Xmodmap | 4 | exec spectrwm |
5 | sysresources=/etc/X11/xinit/.Xresources | ||
6 | sysmodmap=/etc/X11/xinit/.Xmodmap | ||
7 | |||
8 | # merge in defaults and keymaps | ||
9 | |||
10 | if [ -f $sysresources ]; then | ||
11 | |||
12 | xrdb -merge $sysresources | ||
13 | |||
14 | fi | ||
15 | |||
16 | if [ -f $sysmodmap ]; then | ||
17 | xmodmap $sysmodmap | ||
18 | fi | ||
19 | |||
20 | if [ -f "$userresources" ]; then | ||
21 | |||
22 | xrdb -merge "$userresources" | ||
23 | |||
24 | fi | ||
25 | |||
26 | if [ -f "$usermodmap" ]; then | ||
27 | xmodmap "$usermodmap" | ||
28 | fi | ||
29 | |||
30 | # start some nice programs | ||
31 | |||
32 | if [ -d /etc/X11/xinit/xinitrc.d ] ; then | ||
33 | for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do | ||
34 | [ -x "$f" ] && . "$f" | ||
35 | done | ||
36 | unset f | ||
37 | fi | ||
38 | |||
39 | if [ -n "$DISPLAY" ]; then | ||
40 | xset b off | ||
41 | fi | ||
42 | |||
43 | # load additional configs | ||
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 | xsetroot -cursor_name left_ptr | ||
64 | exec dbus-launch --exit-with-session bspwm | ||
65 | #exec bspwm | 5 | #exec bspwm |