From 9b0750ba68aee61aacf7538b5b14d8f265e934e5 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Mon, 14 Oct 2024 11:38:15 -0600 Subject: Add some support for vertially ordered screens. Add's the workspace '+' as the first workspace that's not on the same 'plane' as the current workspace. A screen, screen1 is considered on the same plane as screen2 if screen2's vertical center point is within screen1's vertical bounds. --- extras/HOME/.xmonad/startup | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'extras') 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 '\' | 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 -- cgit