-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.xinitrc
executable file
·49 lines (34 loc) · 982 Bytes
/
.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
#!/bin/sh
# Author: Enan Ajmain
# Email : [email protected]
# Github: https://github.com/3N4N
DESKTOP="xfce"
# DESKTOP="dwm"
# setup keyboard mappings
setxkbmap -option ''
setxkbmap -option 'caps:ctrl_modifier'
setxkbmap -option 'shift:both_capslock'
setxkbmap -option 'numpad:microsoft'
# setup natural scrolling in touchpad
xinput set-prop 'DELL0767:00 06CB:7E92 Touchpad' 'libinput Tapping Enabled' 1
xinput set-prop 'DELL0767:00 06CB:7E92 Touchpad' 'libinput Natural Scrolling Enabled' 1
# setup compositor
compton -b
if [ $DESKTOP = "xfce" ]; then
exec startxfce4
elif [ $DESKTOP = "dwm" ]; then
# setup background
hsetroot -fill /home/enan/Pictures/backgrounds/quay.jpg
# setup notification widget
dunst &> /dev/null &
# fix broken java applications
export _JAVA_AWT_WM_NONREPARENTING=1
# setup status bar
dwm_status &> /dev/null &
while true; do
# Log stderror to a file
#dwm 2> ~/.dwm.log
# No error logging
dwm >/dev/null 2>&1
done
fi