blob: 5eae1325506fb76144025bebc6f05c1e73a4e3d8 (
plain)
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
|
#!/bin/sh
redshift & # filter blue light
dunst & # notification daemon
# certain event cause rate to reset (https://wiki.archlinux.org/title/Xorg/Keyboard_configuration)
# -ardelay milliseconds
# -arinterval milliseconds
xset r rate 200 50 # delay before keyrepeat and keyrepeat rate
unclutter --timeout 10 --fork # hide mouse after 2s
case "$(cat /etc/hostname)" in
cacharle-main)
if xrandr | grep 'HDMI-0 connected'
then
xrandr --output DVI-0 --auto --left-of DVI-1 \
--output DVI-1 --mode 1920x1080 --primary --left-of HDMI-0 \
--output HDMI-0 --mode 1920x1080
else
xrandr --output DVI-0 --auto --left-of DVI-1 \
--output DVI-1 --mode 1920x1080 --primary
fi
;;
charles-laptop)
xrandr | grep 'VGA1.*connected' &&
xrandr --output LVDS1 --primary --left-of VGA1 \
--output VGA1 --mode 1280x1024
;;
esac
exec xmonad
|