-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
28 lines (22 loc) · 827 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
userresources=$HOME/.Xresources
[ -f $userresources ] && xrdb -merge $userresources
laptop="LVDS1" # laptop's screen
dmonitor="DP2" # dock's monitor
dmonitor_connection=$(xrandr -q | awk '/DP2/ {print $2}')
# Check if laptop is conneted to a dock
[ "$dmonitor_connection" = connected ] &&
xrandr --output "$laptop" --auto --primary \
--output "$dmonitor" --auto --mode 1920x1080 --right-of "$laptop"
#~/.local/bin/remaps # set keybinds
~/.local/bin/setbg # set wallpaper
# Start some useful programs and scripts
#xcompmgr &
slstatus &
dunst &
unclutter &
sxhkd &
# Here is an external script which start dwm in a loop
# It's made this way, so dwm can be easily reloaded
# And X11 can be killed by typing "pkill xinit"
# It wouldn't be possible without having an external script
exec ~/.local/bin/dwmstart