-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.xinitrc
More file actions
executable file
·72 lines (48 loc) · 1.21 KB
/
.xinitrc
File metadata and controls
executable file
·72 lines (48 loc) · 1.21 KB
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
#!/usr/bin/sh
# @author nate zhou
# @since 2023,2026
wm=${1:-dwm}
autostart() {
xrandr -s 1920x1080
xwallpaper --zoom ${HOME}/.local/share/wallpaper &
picom &
${HOME}/.local/bin/lucia -d &
${HOME}/.local/bin/mbs-cron &
xss-lock -- slock &
redshift -P -O 5000 &
clipmenud &
pgrep 'dunst' || dunst -conf ${HOME}/.config/dunst/dunstrc-offset &
pgrep 'xob' || ${HOME}/.local/bin/xobd &
fcitx5 -d --verbose '*=0' &
}
config_x() {
echo "Xft.dpi: 96" | xrdb -m
xset r rate 200 30 &
setxkbmap -option caps:swapescape,altwin:swap_alt_win &
unclutter --timeout 3 &
xbanish &
touchpads=$(xinput list | grep -i "touchpad" | grep -oP 'id=\K[0-9]+')
for touchpad in $touchpads ; do
xinput set-prop "$touchpad" "libinput Tapping Enabled" 1
done
xset s on
xset s 960
export GTK_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
export XDG_SESSION_TYPE=xorg
}
config_x; autostart;
case "$wm" in
dwm)
damblocks-mpdd &
damblocks --xsetroot &
exec ssh-agent dwm
;;
bspwm)
exec ssh-agent bspwm
;;
i3)
exec ssh-agent i3
;;
esac