-
Notifications
You must be signed in to change notification settings - Fork 0
/
xinitrc
55 lines (45 loc) · 1.4 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
#!/bin/sh
#
# !ln -s %:p ~/.xinitrc
#
WM="i3"
## loading .Xdefaults (if you have one) -----------
if [ -f $HOME/.Xdefaults ]; then
xrdb -merge $HOME/.Xdefaults
fi
# disable trackpad while typing
syndaemon -t -k -i 2 -d &
# -i 2: sets the idle time to 2 seconds. The idle time specifies how many seconds after the last key-press before enabling touchpad again.
# -t: tells the daemon not to disable mouse movement when typing and only disable tapping and scrolling
# -k: ignore modifier keys when monitoring keyboard activity
# -d: starts as a daemon
# Dvorak keyboard
setxkbmap -variant dvorak
# Xmodmap
xmodmap ~/.Xmodmap
# activating numlock X11
numlockx
# Xscreensaver
# xscreensaver -no-splash &
# Wall paper
# eval `cat ~/.fehbg`
nitrogen --restore &
# Multiple screens
if [[ "$2" == "vga" ]]; then
xrandr --output LVDS --auto --primary
xrandr --output VGA1 --auto --left-of LVDS
# elif [[ "$2" == "hdmi" ]]; then
# xrandr --output LVDS --auto --output HDMI-0 --right-of LVDS #--primary
# xrandr --output LVDS --primary
elif [[ "$2" == "hdmi" ]]; then
xrandr --output eDP1 --auto --output HDMI1 --right-of eDP1 #--primary
xrandr --output eDP1 --primary
elif [[ "$2" == "turing" ]]; then
xrandr --output HDMI-0 --auto --output DP-4 --left-of HDMI-0
xrandr --output DP-4 --mode 2560x1440 --rate 144
xrandr --output DP-4 --primary
else
echo "Only one screen"
fi
## windows manager ---------------
exec $WM