2020-03-30 23:10:50 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Output configuration
|
|
|
|
#
|
|
|
|
default_orientation vertical
|
2021-03-23 20:40:22 +08:00
|
|
|
output "Philips Consumer Electronics Company Philips 19B4 UK51344100785" position 0 800 transform 270
|
|
|
|
output "Dell Inc. DELL P2719H DNJQPS2" position 2160 0 transform 90
|
|
|
|
output "Dell Inc. DELL P2719H 974YPS2" position 1080 0 transform 270
|
2020-03-30 23:10:50 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Magic source switch
|
|
|
|
#
|
2021-03-23 20:40:22 +08:00
|
|
|
set $monitor_mini --bus 0
|
|
|
|
set $monitor_left --bus 5
|
|
|
|
set $monitor_right --bus 6
|
2020-03-30 23:10:50 +08:00
|
|
|
mode "monitor" {
|
|
|
|
# switch the left display to DisplayPort
|
2021-03-23 20:40:22 +08:00
|
|
|
bindsym F1 exec ddcutil $monitor_left setvcp D6 0x01 && ddcutil $monitor_left setvcp 60 0x0f
|
2020-03-30 23:10:50 +08:00
|
|
|
# switch the left display to VGA
|
2021-03-23 20:40:22 +08:00
|
|
|
bindsym F3 exec ddcutil $monitor_left setvcp D6 0x01 && ddcutil $monitor_left setvcp 60 0x01
|
|
|
|
|
2020-03-30 23:10:50 +08:00
|
|
|
# switch the right display to DisplayPort
|
2021-03-23 20:40:22 +08:00
|
|
|
bindsym F2 exec ddcutil $monitor_right setvcp D6 0x01 && ddcutil $monitor_right setvcp 60 0x0f
|
2020-03-30 23:10:50 +08:00
|
|
|
# switch the right display to VGA
|
2021-03-23 20:40:22 +08:00
|
|
|
bindsym F4 exec ddcutil $monitor_right setvcp D6 0x01 && ddcutil $monitor_right setvcp 60 0x01
|
2020-03-30 23:10:50 +08:00
|
|
|
|
|
|
|
# switch both displays to DisplayPort
|
2021-03-23 20:40:22 +08:00
|
|
|
bindsym F5 exec (ddcutil $monitor_left setvcp D6 0x01 && ddcutil $monitor_left setvcp 60 0x0f) & (ddcutil $monitor_right setvcp D6 0x01 && ddcutil $monitor_right setvcp 60 0x0f)
|
2020-03-30 23:10:50 +08:00
|
|
|
# switch both displays to VGA
|
2021-03-23 20:40:22 +08:00
|
|
|
bindsym F6 exec (ddcutil $monitor_left setvcp D6 0x01 && ddcutil $monitor_left setvcp 60 0x01) & (ddcutil $monitor_right setvcp D6 0x01 && ddcutil $monitor_right setvcp 60 0x01)
|
2020-03-30 23:10:50 +08:00
|
|
|
|
|
|
|
# return to default mode
|
2021-03-23 20:40:22 +08:00
|
|
|
bindsym Pause mode "default"
|
2020-03-30 23:10:50 +08:00
|
|
|
}
|
2021-03-23 20:40:22 +08:00
|
|
|
bindsym Pause mode "monitor"
|
2020-03-30 23:10:50 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Media controls
|
|
|
|
#
|
2021-03-24 01:11:23 +08:00
|
|
|
bindsym $mod+p exec "playerctl play-pause"
|
2020-03-30 23:10:50 +08:00
|
|
|
|
|
|
|
# vim: ai ts=4 sw=4 et
|