-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxinitrc
44 lines (36 loc) · 969 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
#!/bin/sh
#
# ~/.xinitrc
#
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Start devmon for automounting
devmon --exec-on-drive "notify-send '%f has been mounted'" \
--exec-on-unmount "notify-send '%f has been unmounted'" \
--exec-on-remove "notify-send '%f has been removed'" &
# Start dunst
dunst -config ~/.dunstrc &
# Turn on numlock
numlockx &
# Start ibus daemon for input switching
ibus-daemon -drxR &
# Source bashrc
. ~/.bashrc &
# set up monitors on desktop
HOSTNAME=$(whoami)
if [ $HOSTNAME == "hagbard" ];
then
xrandr --output HDMI-1 --auto --primary
elif [ $HOSTNAME == "corwin" ];
then
xrandr --output DP-1 --rotate right
xrandr --auto --output HDMI-1-2 --mode 2560x1440 --primary --right-of DP-1
fi
## start planetary rulers script
ruby ~/programming/scripts/planetary_rulers.rb &
# Start desktop environment
exec i3 -c ~/.config/i3/config