From 6b0a919296453d90ab09e4aa68439cea16278938 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sun, 19 Jun 2022 16:43:02 -0400 Subject: [PATCH] mon-on: use mon-on to configure other devices than monitor --- src/.local/bin/mon-on.example | 26 ++++++++++++++++++++++++-- src/.xinitrc | 2 -- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/.local/bin/mon-on.example b/src/.local/bin/mon-on.example index 488d9b9..17d830f 100755 --- a/src/.local/bin/mon-on.example +++ b/src/.local/bin/mon-on.example @@ -1,5 +1,27 @@ #!/bin/sh -# Example of per host xrandr script +# Example of per-host device configuration -xrandr --output eDP-1 --mode 1920x1080 --right-of DP-1 --output DP-2-1 --primary --mode 2560x1440 --left-of DP-1 --output DP-1 --mode 2560x1440 +# Map screens +xrandr --output eDP1 --primary --mode 1920x1080 --right-of DP1 --output DP1 --mode 2560x1440 --right-of DP2-1 --output DP2-1 --mode 2560x1440 + +# Map touchscreen to proper screen +xsetwacom set 17 MapToOutput eDP1 +xsetwacom set 18 MapToOutput eDP1 +xsetwacom set 23 MapToOutput eDP1 + +# Set keyboard settings +setxkbmap -layout us,ca -variant multi -option 'grp:win_space_toggle, caps:swapescape' +xset r rate 300 50 + +# Configure touchpad sensitivity + +# To change this: +# xinput list +# to find the device name of your mouse. +# xinput list-props +# to find the property name. + +# xinput set-prop + +xinput set-prop "MSFT0001:01 06CB:CD3E Touchpad" "Device Accel Constant Deceleration" 1 diff --git a/src/.xinitrc b/src/.xinitrc index 1607e31..e623747 100755 --- a/src/.xinitrc +++ b/src/.xinitrc @@ -1,7 +1,5 @@ #!/bin/sh -setxkbmap -layout us,ca -variant multi -option 'grp:win_space_toggle, caps:swapescape' -xset r rate 300 50 mon-on #picom --experimental-backends --backend glx & xwallpaper --center .config/wall.png