Initial commit
This commit is contained in:
27
.config/autorandr/home/config
Normal file
27
.config/autorandr/home/config
Normal file
@@ -0,0 +1,27 @@
|
||||
output DP1
|
||||
off
|
||||
output DP2
|
||||
off
|
||||
output DP2-1
|
||||
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
|
||||
output DP2-3
|
||||
crtc 1
|
||||
mode 1920x1080
|
||||
pos 1920x0
|
||||
rate 60.00
|
2
.config/autorandr/home/setup
Normal file
2
.config/autorandr/home/setup
Normal file
@@ -0,0 +1,2 @@
|
||||
DP2-3 00ffffffffffff005a6332c1010101012d1d0103803c22782e2235a3594d9c28135054bfef80b300a940a9c0950090408180814081c0023a801871382d40582c450056502100001e000000ff00554e523139343536323930320a000000fd00324b185211000a202020202020000000fc005641323731392053657269657301ad020322f14c9005040302071f141312160123097f078301000068030c001000000000023a801871382d40582c450056502100001e011d8018711c1620582c250056502100009e011d007251d01e206e28550056502100001e8c0ad08a20e02d10103e9600565021000018023a80d072382d40102c458056502100001e00000074
|
||||
eDP1 00ffffffffffff003870560000000000121e0104951f1178027535955c578f281d5054000000010101010101010101010101010101012a3680a070381f403020350035ae1000001a522b80a070381f403020350035ae1000001a000000fe004a34594b4780313430354c3031000000000000412199001100000a010a2020000c
|
27
.config/autorandr/home2/config
Normal file
27
.config/autorandr/home2/config
Normal file
@@ -0,0 +1,27 @@
|
||||
output DP1
|
||||
off
|
||||
output DP1-1
|
||||
off
|
||||
output DP1-2
|
||||
off
|
||||
output DP2
|
||||
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
|
||||
output DP1-3
|
||||
crtc 1
|
||||
mode 1920x1080
|
||||
pos 1920x0
|
||||
rate 60.00
|
2
.config/autorandr/home2/setup
Normal file
2
.config/autorandr/home2/setup
Normal file
@@ -0,0 +1,2 @@
|
||||
DP1-3 00ffffffffffff005a6332c1010101012d1d0103803c22782e2235a3594d9c28135054bfef80b300a940a9c0950090408180814081c0023a801871382d40582c450056502100001e000000ff00554e523139343536323930320a000000fd00324b185211000a202020202020000000fc005641323731392053657269657301ad020322f14c9005040302071f141312160123097f078301000068030c001000000000023a801871382d40582c450056502100001e011d8018711c1620582c250056502100009e011d007251d01e206e28550056502100001e8c0ad08a20e02d10103e9600565021000018023a80d072382d40102c458056502100001e00000074
|
||||
eDP1 00ffffffffffff003870560000000000121e0104951f1178027535955c578f281d5054000000010101010101010101010101010101012a3680a070381f403020350035ae1000001a522b80a070381f403020350035ae1000001a000000fe004a34594b4780313430354c3031000000000000412199001100000a010a2020000c
|
24
.config/autorandr/mobile/config
Normal file
24
.config/autorandr/mobile/config
Normal file
@@ -0,0 +1,24 @@
|
||||
output DP1
|
||||
off
|
||||
output DP1-1
|
||||
off
|
||||
output DP1-2
|
||||
off
|
||||
output DP1-3
|
||||
off
|
||||
output DP2
|
||||
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
|
1
.config/autorandr/mobile/setup
Normal file
1
.config/autorandr/mobile/setup
Normal file
@@ -0,0 +1 @@
|
||||
eDP1 00ffffffffffff003870560000000000121e0104951f1178027535955c578f281d5054000000010101010101010101010101010101012a3680a070381f403020350035ae1000001a522b80a070381f403020350035ae1000001a000000fe004a34594b4780313430354c3031000000000000412199001100000a010a2020000c
|
71
.config/autorandr/postswitch
Executable file
71
.config/autorandr/postswitch
Executable file
@@ -0,0 +1,71 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function move_workspace_to_screen() {
|
||||
workspace="${1}"
|
||||
screen="${2}"
|
||||
|
||||
i3-msg workspace "${workspace}"
|
||||
i3-msg move workspace to output "${screen}"
|
||||
|
||||
sed -i "/^workspace \"${workspace}\" output/ c \\workspace \"${workspace}\" output \"${screen}\"" ${HOME}/.config/i3/config
|
||||
}
|
||||
|
||||
function set_screens() {
|
||||
|
||||
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 "${3}"
|
||||
move_workspace_to_screen 10 "${3}"
|
||||
move_workspace_to_screen 11 "${3}"
|
||||
move_workspace_to_screen 12 "${3}"
|
||||
|
||||
i3-msg reload
|
||||
|
||||
i3-msg workspace 9
|
||||
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"
|
||||
pacmd set-card-profile 0 HiFi: Default
|
||||
;;
|
||||
|
||||
"home2")
|
||||
set_screens "eDP1" "DP1-3" "DP1-3"
|
||||
pacmd set-card-profile 0 HiFi: Default
|
||||
;;
|
||||
|
||||
"work")
|
||||
set_screens "eDP1" "DP1-1" "DP1-2"
|
||||
pacmd set-card-profile 0 HiFi: Default
|
||||
;;
|
||||
|
||||
"work2")
|
||||
set_screens "eDP1" "DP2-1" "DP2-2"
|
||||
pacmd set-card-profile 0 HiFi: Default
|
||||
;;
|
||||
|
||||
"mobile")
|
||||
set_screens "eDP1" "eDP1" "eDP1"
|
||||
;;
|
||||
|
||||
*)
|
||||
notify-send -i display "Display profile" "CONFIGURATION NON RECONNUE"
|
||||
;;
|
||||
esac
|
||||
|
||||
notify-send -i display "Display profile" "Bacule vers $(autorandr --detected)"
|
||||
}
|
||||
|
||||
main
|
30
.config/autorandr/work/config
Normal file
30
.config/autorandr/work/config
Normal file
@@ -0,0 +1,30 @@
|
||||
output DP1
|
||||
off
|
||||
output DP1-3
|
||||
off
|
||||
output DP2
|
||||
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
|
||||
output DP1-1
|
||||
crtc 1
|
||||
mode 1920x1080
|
||||
pos 1920x0
|
||||
rate 60.00
|
||||
output DP1-2
|
||||
crtc 2
|
||||
mode 1920x1080
|
||||
pos 3840x0
|
||||
rate 60.00
|
3
.config/autorandr/work/setup
Normal file
3
.config/autorandr/work/setup
Normal file
@@ -0,0 +1,3 @@
|
||||
DP1-1 00ffffffffffff0010acd9d04c475530091d0104a5351e783a0565a756529c270f5054a54b00714f8180a9c0d1c00101010101010101023a801871382d40582c45000f282100001e000000ff00313835375a54320a2020202020000000fc0044454c4c205032343139480a20000000fd00384c1e5311010a20202020202000ae
|
||||
DP1-2 00ffffffffffff0010acd9d04c4b5530091d0104a5351e783a0565a756529c270f5054a54b00714f8180a9c0d1c00101010101010101023a801871382d40582c45000f282100001e000000ff00484a34375a54320a2020202020000000fc0044454c4c205032343139480a20000000fd00384c1e5311010a2020202020200082
|
||||
eDP1 00ffffffffffff003870560000000000121e0104951f1178027535955c578f281d5054000000010101010101010101010101010101012a3680a070381f403020350035ae1000001a522b80a070381f403020350035ae1000001a000000fe004a34594b4780313430354c3031000000000000412199001100000a010a2020000c
|
30
.config/autorandr/work2/config
Normal file
30
.config/autorandr/work2/config
Normal file
@@ -0,0 +1,30 @@
|
||||
output DP1
|
||||
off
|
||||
output DP2
|
||||
off
|
||||
output DP2-3
|
||||
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
|
||||
output DP2-1
|
||||
crtc 1
|
||||
mode 1920x1080
|
||||
pos 1920x0
|
||||
rate 60.00
|
||||
output DP2-2
|
||||
crtc 2
|
||||
mode 1920x1080
|
||||
pos 3840x0
|
||||
rate 60.00
|
3
.config/autorandr/work2/setup
Normal file
3
.config/autorandr/work2/setup
Normal file
@@ -0,0 +1,3 @@
|
||||
DP2-1 00ffffffffffff0010acd9d04c475530091d0104a5351e783a0565a756529c270f5054a54b00714f8180a9c0d1c00101010101010101023a801871382d40582c45000f282100001e000000ff00313835375a54320a2020202020000000fc0044454c4c205032343139480a20000000fd00384c1e5311010a20202020202000ae
|
||||
DP2-2 00ffffffffffff0010acd9d04c4b5530091d0104a5351e783a0565a756529c270f5054a54b00714f8180a9c0d1c00101010101010101023a801871382d40582c45000f282100001e000000ff00484a34375a54320a2020202020000000fc0044454c4c205032343139480a20000000fd00384c1e5311010a2020202020200082
|
||||
eDP1 00ffffffffffff003870560000000000121e0104951f1178027535955c578f281d5054000000010101010101010101010101010101012a3680a070381f403020350035ae1000001a522b80a070381f403020350035ae1000001a000000fe004a34594b4780313430354c3031000000000000412199001100000a010a2020000c
|
Reference in New Issue
Block a user