forked from ivyl/i3-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xinitrc
executable file
·66 lines (46 loc) · 1.28 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
#!/bin/sh
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# so all binaries are visible in dmenu_run
export PATH="$PATH:$HOME/.i3/bin:$HOME/.bin:$HOME/bin"
# logging in with dock
lsusb | grep -q "ThinkPad Mini Dock"
[ "$?" -eq 0 ] && $HOME/.i3/dockery.sh dock &
# use xresources
xrdb -merge ~/.i3/xresources
# multiple screen setup
[ -e ~/.screen_setup ] && source ~/.screen_setup
# background
[ -e ~/.fehbg ] && source ~/.fehbg
# hide mouse coursor when it isn't used
unclutter -root -visible &
# pulse audio session
start-pulseaudio-x11
# keyboard layout
xmodmap ~/.i3/xmodmap
[ -e ~/.xmodmap_local ] && xmodmap ~/.xmodmap_local
# color temperature adjustment, set for Gdańsk
redshift -l 54.35:18.65 -m randr -t 5500:4500 -g 0.75:0.75:0.75 &
# notification
dunst -config ~/.i3/dunstrc &
# disks automounting
udiskie &
# terminal server
urxvtd &
# dropbox
[ -e /usr/bin/dropboxd ] && /usr/bin/dropboxd &
# gpg agent
export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh"
gpg-connect-agent updatestartuptty /bye
# composition manager
compton --config ~/.i3/compton.conf &
# Network Manager applet
>> /dev/null which nm-applet && nm-applet &
>> /dev/null which blueman--applet && blueman-applet &
xcape
i3
true