sway/config: Use blocks for output devices
Organize settings per output using blocks.
This commit is contained in:
parent
24a17986a3
commit
fcbf8d0ed4
30
sway/config
30
sway/config
@ -44,13 +44,31 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
|||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||||
|
|
||||||
# eDP-1 is the internal laptop display
|
# eDP-1 is the internal laptop display
|
||||||
output eDP-1 scale 2
|
output eDP-1 {
|
||||||
output eDP-1 resolution 2560x1440 position 0,0
|
scale 2
|
||||||
|
resolution 2560x1440
|
||||||
|
position 0,0
|
||||||
|
}
|
||||||
|
|
||||||
# DP-3 and DP-4 are display port when connected to dock
|
# DP-3 and DP-4 are display port when connected to dock
|
||||||
output DP-3 scale 2
|
output DP-3 {
|
||||||
output DP-3 resolution 2560x1440 position 1280,0
|
scale 2
|
||||||
output DP-4 scale 2
|
resolution 2560x1440
|
||||||
output DP-4 resolution 2560x1440 position 1280,0
|
position 1280,0
|
||||||
|
}
|
||||||
|
|
||||||
|
output DP-4 {
|
||||||
|
scale 2
|
||||||
|
resolution 2560x1440
|
||||||
|
position 1280,0
|
||||||
|
}
|
||||||
|
|
||||||
|
output HDMI-A-1 {
|
||||||
|
scale 1
|
||||||
|
resolution 1920x1080
|
||||||
|
position 1920,0
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
set $laptop eDP-1
|
set $laptop eDP-1
|
||||||
bindswitch --reload lid:on output $laptop disable
|
bindswitch --reload lid:on output $laptop disable
|
||||||
|
Loading…
Reference in New Issue
Block a user