sway: use stable monitor names

This commit is contained in:
Gabriel Ebner 2020-09-18 17:29:51 +02:00
parent 61eb9fc691
commit 858b8fbcba
1 changed files with 14 additions and 10 deletions

View File

@ -172,21 +172,25 @@ seat * hide_cursor 1200
bindsym $mod+Space exec fcitx-remote -t bindsym $mod+Space exec fcitx-remote -t
ifelse(hostname, [archachatina], [ ifelse(hostname, [archachatina], [
output DP-1 pos 0 0 res 3840x2160 define(bigmonitor, "BenQ Corporation BenQ LCD 58F01595SL0")
output DP-3 pos 0 0 res 3840x2160 define(smallmonitor, "Dell Inc. DELL U2713HM 7JNY549C813S")
output DP-4 pos 3840 0 res 2560x1440 transform 270 define(television, "Samsung Electric Company SAMSUNG 0x00000001")
output HDMI-A-4 pos 455 2758 define(projector, "BenQ Corporation BenQ PJ 0x0000057F")
output DP-5 pos 2733 2758
workspace 8 output DP-5 output bigmonitor pos 0 0 res 3840x2160
workspace 9 output HDMI-A-4 output smallmonitor pos 3840 0 res 2560x1440 transform 270
output projector pos 455 2758
output television pos 2733 2758
workspace 8 output television
workspace 9 output projector
input "9580:109:HUION_Huion_Tablet_Pen" { input "9580:109:HUION_Huion_Tablet_Pen" {
map_to_output DP-3 map_to_output bigmonitor
} }
bindsym $mod+f11 output DP-3 dpms off, output DP-4 dpms off bindsym $mod+f11 output bigmonitor dpms off, output smallmonitor dpms off
bindsym $mod+shift+f11 output DP-3 dpms on, output DP-4 dpms on bindsym $mod+shift+f11 output bigmonitor dpms on, output smallmonitor dpms on
]) ])
ifelse(hostname, [decoysnail], [ ifelse(hostname, [decoysnail], [