-
Notifications
You must be signed in to change notification settings - Fork 0
/
flip
executable file
·35 lines (35 loc) · 1.12 KB
/
flip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
case $1 in
up)
xinput set-prop "SYNA2B29:00 06CB:77C6" "Device Enabled" 0
pkill compton
xrandr --output eDP-1 --rotate inverted
compton -CGb --backend glx --vsync opengl
/home/eero/.fehbg
xinput set-prop "ELAN21EF:00 04F3:227C" "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1
;;
down)
xinput set-prop "SYNA2B29:00 06CB:77C6" "Device Enabled" 1
pkill compton
xrandr --output eDP-1 --rotate normal
compton -CGb --backend glx --vsync opengl
/home/eero/.fehbg
xinput set-prop "ELAN21EF:00 04F3:227C" "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
;;
left)
xinput set-prop "SYNA2B29:00 06CB:77C6" "Device Enabled" 0
pkill compton
xrandr --output eDP-1 --rotate left
compton -CGb --backend glx --vsync opengl
/home/eero/.fehbg
xinput set-prop "ELAN21EF:00 04F3:227C" "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
;;
right)
xinput set-prop "SYNA2B29:00 06CB:77C6" "Device Enabled" 0
pkill compton
xrandr --output eDP-1 --rotate right
compton -CGb --backend glx --vsync opengl
/home/eero/.fehbg
xinput set-prop "ELAN21EF:00 04F3:227C" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
;;
esac