-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcool
More file actions
executable file
·17 lines (14 loc) · 1015 Bytes
/
Copy pathcool
File metadata and controls
executable file
·17 lines (14 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env sh
xrandr --output DisplayPort-8 --auto --output DisplayPort-7 --mode 3440x1440 --rate 120 --above DisplayPort-8 --output eDP-1 --off ||
xrandr --output DisplayPort-7 --auto --output DisplayPort-8 --mode 3440x1440 --rate 120 --above DisplayPort-7 --output eDP-1 --off ||
xrandr --output DisplayPort-6 --auto --output DisplayPort-5 --mode 3440x1440 --rate 120 --above DisplayPort-6 --output eDP-1 --off ||
xrandr --output DisplayPort-5 --auto --output DisplayPort-6 --mode 3440x1440 --rate 120 --above DisplayPort-5 --output eDP-1 --off
absolute_pds="WingCoolTouch\|Pen"
absolute_ids="$(xinput | sed -ne "/Virtual core keyboard/Q;/${absolute_pds}/{s/.*id=\([0-9]\+\).*/\1/p}")"
for id in $absolute_ids; do
xinput --map-to-output $id eDP-1
done
#xinput --set-prop 'Wacom HID 16C Pen stylus' 'Wacom button action 1' 1572867
#xinput --set-prop 'Wacom HID 16C Pen eraser' 'Wacom button action 0' 1572866
#xinput --set-prop 'Wacom HID 16C Pen stylus' 'Wacom button action 0' 1572865
xset r rate 180 50