-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
144 lines (105 loc) · 3 KB
/
.xinitrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#!/bin/sh
# this file is executed when calling startx
# to start a different WM, set session="WM" below, or in console run:
# startx ~/.xinitrc WM
# session to run if none passed as first arg ($1)
session="${1:-hlwm}"
# set environment wm for use in scripts
export WM="$session"
# default arch xinit scripts
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*.sh; do
[ -x "$f" ] && . "$f"
done
fi
# user init scripts and settings
[ -f /etc/X11/xinit/.Xmodmap ] && xmodmap /etc/X11/xinit/.Xmodmap
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
[ -f ~/.xprofile ] && source ~/.xprofile
# display timeout and sleep
xset s 3600 3600
xset dpms 3600 3700 4000
# keyboard repeat rate
xset r rate 400 50
kbdrate -d 400 -r 50
# dbus
dbus-update-activation-environment --all
dbus-launch
# adding paths to font config???
# xset +fp /usr/share/fonts/envypn
# xset +fp /usr/share/fonts/spleen
## pywal restore last theme
#wal -R
## rebind caps-lock to ctrl
setxkbmap -option ctrl:nocaps
# do NOT put commands below the exec lines
case $session in
dwm)
~/.dwm/startdwm.sh ;;
bspwm)
exec bspwm ;;
hlwm)
exec herbstluftwm --locked ;;
wmutils)
# focus.sh border settings
export BW=2
export ACTIVE=${ACTIVE:-0xed6a43}
export INACTIVE=${INACTIVE:-0xd0d0d0}
wal -R &
xsetroot -cursor_name Left_ptr &
xbanish -i mod4 &
# hsetroot -solid '#a8d0a9' &
# hsetroot -extend ~/Pictures/Wallpapers/really_minimal/light/Fondo_iconoaperture.png &
# hsetroot -extend Pictures/Wallpapers/really_minimal/dark/TriCircle-Blues.png &
hsetroot -extend ~/Pictures/Wallpapers/really_minimal/dark/Lines_and_Lines.png &
numlockx on &
# pkill -x picom
# picom -b &
# rdshft &
# pkill -x xclock; xclock -strftime "%a %e %b %H%M h" -geometry 130x18+5+5 -render \
# -face "Spleen:pixelsize=12" -fg SandyBrown -bg
# # Terminate already running bar instances
pkill -x polybar
# # Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# # Launch bar
polybar -qc cwm &
glazier &
rootmenu &
focus_watcher.sh &
workspace.sh -i &
alacritty &
exec sxhkd -c ~/.config/wmutils/sxhkdrc ;;
e16)
exec e16 ;;
exwm)
# Disable access control for the current user.
xhost +SI:localuser:$USER
# Make Java applications aware this is a non-reparenting window manager.
export _JAVA_AWT_WM_NONREPARENTING=1
# Set default cursor.
xsetroot -cursor_name left_ptr
# Set keyboard repeat rate.
# xset r rate 200 60
# Uncomment the following block to use the exwm-xim module.
#export XMODIFIERS=@im=exwm-xim
#export GTK_IM_MODULE=xim
#export QT_IM_MODULE=xim
#export CLUTTER_IM_MODULE=xim
# usually reqd stuff
xbanish -i control &
rdshft &
picom -b
# Finally start Emacs
exec emacs ;;
leftwm)
exec leftwm ;;
mate)
exec mate-session ;;
wmii)
exec wmii ;;
progman)
exec progman ;;
*) exec "$session" # Unknown, try running it
esac