aboutsummaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
Diffstat (limited to 'extras')
-rwxr-xr-xextras/HOME/.xmonad/startup15
1 files changed, 15 insertions, 0 deletions
diff --git a/extras/HOME/.xmonad/startup b/extras/HOME/.xmonad/startup
index 85c888e..5fcfaf7 100755
--- a/extras/HOME/.xmonad/startup
+++ b/extras/HOME/.xmonad/startup
@@ -10,6 +10,21 @@ common() {
rm -rf "$HOME/.xmonad/icons/cache/"
}
+hostname_rahm3() {
+ $HOME/Projects/rkb/setxkbmap.sh
+ xinput set-prop "TPPS/2 Elan TrackPoint" "Coordinate Transformation Matrix" 2 0 0 0 2 0 0 0 1
+ xinput set-prop "ELAN0672:00 04F3:3187 Touchpad" "Coordinate Transformation Matrix" 2 0 0 0 2 0 0 0 1
+
+ n_displays=$(xrandr | grep '\<connected\>' | wc -l)
+ if [[ "$n_displays" -le "2" ]] ; then
+ if [ -z "$(ps aux | grep compton | grep -v grep)" ] ; then
+ __GL_SYNC_TO_VBLANK=1 nohup picom --backend=glx &>/dev/null &
+ fi
+ else
+ killall picom
+ fi
+}
+
hostname_rahm1() {
# Startup commands specific to my worktop.
xinput set-prop "TPPS/2 Elan TrackPoint" "Coordinate Transformation Matrix" 3 0 0 0 3 0 0 0 1