-
Notifications
You must be signed in to change notification settings - Fork 0
/
xinitrc
executable file
·57 lines (45 loc) · 1.59 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
#!/bin/sh
#xsecurelock saver_darken
cp $HOME/Pictures/currentWallpaper.jpg $HOME/.config/screensaver/screensaver.png
lockerwallScript
#i3lock -ui $HOME/Pictures/currentLock.png &
xsetroot -cursor_name left_ptr &
feh --bg-scale -Z $HOME/Pictures/currentWallpaper.jpg
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
#Fix java
export _JAVA_AWT_WM_NONREPARENTING=1
IRONIC_WM_NAME="LG3D"
NET_WIN=$(xprop -root _NET_SUPPORTING_WM_CHECK | awk -F "# " '{print $2}')
if [[ "$NET_WIN" == 0x* ]]; then
# xprop cannot reliably set UTF8_STRING, so we replace as string.
# fortunately, jdk is OK with this, but wm-spec says use UTF8_STRING.
xprop -id "$NET_WIN" -remove _NET_WM_NAME
xprop -id "$NET_WIN" -f _NET_WM_NAME 8s -set _NET_WM_NAME "$IRONIC_WM_NAME"
else
# even if we're not net compatible, do java workaround
xprop -root -remove _NET_WM_NAME
xprop -root -f _NET_WM_NAME 8s -set _NET_WM_NAME "$IRONIC_WM_NAME"
fi
#compton --config /home/tleilaxu/compton.conf -b
/home/tleilaxu/.dotfiles/scripts/battery_level_checker &
dunst -config /home/tleilaxu/.dunstrc &
xautolock -time 3 -locker "lockscreenWall" &
setxkbmap -model pc104 -layout us,be,us -variant ,,dvorak -option grp:alt_shift_toggle caps:none compose:caps
sxhkd &
exec bspwm