diff options
author | Shubham Saini <shubham6405@gmail.com> | 2019-12-02 12:21:04 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2019-12-02 12:21:04 +0000 |
commit | a42df546ce34429759a20bc2c4c240de045dbd0a (patch) | |
tree | 4e7153d41d6a1b710f8002f2eb7b64231889b6cf /x |
using stow
Diffstat (limited to 'x')
-rw-r--r-- | x/.Xresources | 70 | ||||
-rw-r--r-- | x/.xinitrc | 66 |
2 files changed, 136 insertions, 0 deletions
diff --git a/x/.Xresources b/x/.Xresources new file mode 100644 index 0000000..a47ed7a --- /dev/null +++ b/x/.Xresources | |||
@@ -0,0 +1,70 @@ | |||
1 | URxvt.urgentOnBell: off | ||
2 | URxvt.visualBell: false | ||
3 | URxvt.iso14755: false | ||
4 | URxvt.iso14755_52: off | ||
5 | URxvt.meta8: false | ||
6 | URxvt.depth: 32 | ||
7 | URxvt.metaSendsEscape: true | ||
8 | |||
9 | URxvt.scrollBar: off | ||
10 | URxvt.cursorBlink: true | ||
11 | URxvt.cursorUnderline: true | ||
12 | URxvt.saveLines: 10000 | ||
13 | URxvt.scrollTtyOutput: false | ||
14 | URxvt.scrollWithBuffer: true | ||
15 | URxvt.scrollTtyKeypress: true | ||
16 | |||
17 | URxvt.font: xft:Hermit:style=medium:pixelsize=12, xft:DejaVu Sans Mono:pixelsize:12 | ||
18 | URxvt.letterSpace: 1 | ||
19 | urxvt*termName: rxvt | ||
20 | urxvt*scrollBar: false | ||
21 | urxvt*matcher.button: 1 | ||
22 | urxvt.transparent: false | ||
23 | !urxvt.boldFont: | ||
24 | Xft*dpi: 96 | ||
25 | Xft*antialias: true | ||
26 | Xft*hinting: true | ||
27 | Xft*hintstyle: hintfull | ||
28 | URxvt*cursorUnderline: true | ||
29 | Xft*rgba: rgb | ||
30 | URxvt*geometry: 85x20 | ||
31 | *internalBorder: 10 | ||
32 | URxvt*fading: 0 | ||
33 | URxvt*tintColor: #ffffff | ||
34 | URxvt*shading: 0 | ||
35 | URxvt*inheritPixmap: False | ||
36 | |||
37 | URxvt.foreground: #839496 | ||
38 | URxvt.background: #09090d | ||
39 | URxvt.cursor: #839496 | ||
40 | URxvt.color0: #353540 | ||
41 | URxvt.color8: #545466 | ||
42 | URxvt.color1: #8c5760 | ||
43 | URxvt.color9: #b26f7a | ||
44 | URxvt.color2: #7b8c58 | ||
45 | URxvt.color10: #9db270 | ||
46 | URxvt.color3: #8c6e43 | ||
47 | URxvt.color11: #b28c55 | ||
48 | URxvt.color4: #58698c | ||
49 | URxvt.color12: #7086b2 | ||
50 | URxvt.color5: #7b5e7d | ||
51 | URxvt.color13: #9c77b2 | ||
52 | URxvt.color6: #66808c | ||
53 | URxvt.color14: #82a2b2 | ||
54 | URxvt.color7: #8c8b8b | ||
55 | URxvt.color15: #b8b8c8 | ||
56 | !#include "/home/ssaini/.cache/wal/colors.Xresources" | ||
57 | |||
58 | ! Perls | ||
59 | URxvt.perl-ext-common : default,matcher,keyboard-select,url-select | ||
60 | |||
61 | URxvt.keysym.M-Escape : perl:keyboard-select:activate | ||
62 | URxvt.keysym.M-u : perl:url-select:select_next | ||
63 | URxvt.keysym.M-s : perl:keyboard-select:search | ||
64 | !URxvt.perl-ext-common : tabbed,default,matcher | ||
65 | !Urxvt.perl-lib : /usr/lib/urxvt/perl/ | ||
66 | URxvt.url-select.launcher : firefox | ||
67 | URxvt.url-select.autocopy : true | ||
68 | URxvt.url-select.underline : true | ||
69 | URxvt.url-select.button: 1 | ||
70 | |||
diff --git a/x/.xinitrc b/x/.xinitrc new file mode 100644 index 0000000..93bb186 --- /dev/null +++ b/x/.xinitrc | |||
@@ -0,0 +1,66 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | userresources=$HOME/.Xresources | ||
4 | usermodmap=$HOME/.Xmodmap | ||
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 | |||
64 | |||
65 | xsetroot -cursor_name left_ptr & | ||
66 | exec ck-launch-session dbus-launch --sh-syntax --exit-with-x11 bspwm | ||