diff options
| author | Josh Rahm <rahm@google.com> | 2024-10-14 11:38:15 -0600 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2024-10-14 11:38:44 -0600 |
| commit | 9b0750ba68aee61aacf7538b5b14d8f265e934e5 (patch) | |
| tree | 19b9bc2b2421d4ab94f28f1e8089b3d568fc2315 /extras | |
| parent | 08eacc1d437b08863ebe521446e040bc4fa219a2 (diff) | |
| download | rde-9b0750ba68aee61aacf7538b5b14d8f265e934e5.tar.gz rde-9b0750ba68aee61aacf7538b5b14d8f265e934e5.tar.bz2 rde-9b0750ba68aee61aacf7538b5b14d8f265e934e5.zip | |
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.
Diffstat (limited to 'extras')
| -rwxr-xr-x | extras/HOME/.xmonad/startup | 15 |
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 |