Add autorandr config with graphic tablet

This commit is contained in:
2022-08-16 22:27:24 +02:00
parent 01b0c50388
commit 51792b2518
3 changed files with 74 additions and 1 deletions

View File

@@ -0,0 +1,43 @@
output DP1
off
output DP2
off
output DP2-2
off
output HDMI1
off
output HDMI2
off
output HDMI3
off
output VIRTUAL1
off
output eDP1
crtc 0
mode 1920x1080
pos 0x0
primary
rate 60.00
x-prop-broadcast_rgb Automatic
x-prop-colorspace Default
x-prop-max_bpc 12
x-prop-non_desktop 0
x-prop-scaling_mode Full aspect
output DP2-1
crtc 1
mode 1920x1080
pos 1920x0
rate 60.00
x-prop-audio auto
x-prop-broadcast_rgb Automatic
x-prop-max_bpc 12
x-prop-non_desktop 0
output DP2-3
crtc 2
mode 1920x1080
pos 0x1080
rate 60.00
x-prop-audio auto
x-prop-broadcast_rgb Automatic
x-prop-max_bpc 12
x-prop-non_desktop 0

View File

@@ -0,0 +1,3 @@
DP2-1 00ffffffffffff005a6332c1010101012d1d0103803c22782e2235a3594d9c28135054bfef80b300a940a9c0950090408180814081c0023a801871382d40582c450056502100001e000000ff00554e523139343536323930320a000000fd00324b185211000a202020202020000000fc005641323731392053657269657301ad020322f14c9005040302071f141312160123097f078301000068030c001000000000023a801871382d40582c450056502100001e011d8018711c1620582c250056502100009e011d007251d01e206e28550056502100001e8c0ad08a20e02d10103e9600565021000018023a80d072382d40102c458056502100001e00000074
DP2-3 00ffffffffffff0054e41515170621201f1f0104a5221378221e55a059569f270d5054210800d1c0818095009500b30081c001010101023a801871382d40582c450059c21000001e000000ff0032303231303631370a20202020000000fc00434431363046480a2020202020000000fd00383d1e5311000a2020202020200150020310c043900204230907078301000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094
eDP1 00ffffffffffff003870560000000000121e0104951f1178027535955c578f281d5054000000010101010101010101010101010101012a3680a070381f403020350035ae1000001a522b80a070381f403020350035ae1000001a000000fe004a34594b4780313430354c3031000000000000412199001100000a010a2020000c

View File

@@ -33,11 +33,34 @@ function set_screens() {
bash ${HOME}/.config/polybar/launch.sh
}
function set_screens_with_xppen() {
move_workspace_to_screen 1 "${1}"
move_workspace_to_screen 3 "${1}"
move_workspace_to_screen 4 "${1}"
move_workspace_to_screen 5 "${2}"
move_workspace_to_screen 6 "${2}"
move_workspace_to_screen 7 "${2}"
move_workspace_to_screen 8 "${2}"
move_workspace_to_screen 9 "${2}"
move_workspace_to_screen 10 "${2}"
move_workspace_to_screen 11 "${2}"
move_workspace_to_screen 12 "${3}"
i3-msg reload
i3-msg workspace 12
i3-msg workspace 5
i3-msg workspace 1
bash ${HOME}/.config/polybar/launch.sh
}
function main() {
case $(autorandr --detected) in
"home")
set_screens "eDP1" "DP2-3" "DP2-3"
set_screens "eDP1" "DP2-1" "DP2-1"
pacmd set-card-profile 0 HiFi: Default
;;
@@ -60,6 +83,10 @@ function main() {
set_screens "eDP1" "eDP1" "eDP1"
;;
"home+xppen")
set_screens_with_xppen "eDP1" "DP2-1" "DP2-3"
;;
*)
notify-send -i display "Display profile" "CONFIGURATION NON RECONNUE"
;;