sway: add secondary monitor identifier

This commit is contained in:
Johannes Loher 2020-10-26 13:56:28 +01:00
parent 4a85739635
commit 7903d17564
3 changed files with 23 additions and 20 deletions

View file

@ -25,6 +25,7 @@ set $background $HOME/.local/share/backgrounds/mountain.jpg
# $primary_monitor_identifier - Identifier of the primary monitor # $primary_monitor_identifier - Identifier of the primary monitor
# $primary_monitor_resolution - Resolution for the primary monitor # $primary_monitor_resolution - Resolution for the primary monitor
# $primary_monitor_scale - Scale factor for thr primary monitor # $primary_monitor_scale - Scale factor for thr primary monitor
# $secondary_monitor_identifier - Identifier of the primary monitor
# $secondary_monitor_x_offset - X offset for the secondary monitor # $secondary_monitor_x_offset - X offset for the secondary monitor
# $audio_out - Name of the audio drain to be controlled by shortcuts # $audio_out - Name of the audio drain to be controlled by shortcuts
# $audio_in - Name of the audio source to be controlled by shortcuts # $audio_in - Name of the audio source to be controlled by shortcuts
@ -51,7 +52,7 @@ input 9456:311:Metadot_-_Das_Keyboard_Das_Keyboard_Model_S xkb_model "pc105"
# Outputs # Outputs
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
output $primary_monitor_identifier pos 0 0 res $primary_monitor_resolution scale $primary_monitor_scale output $primary_monitor_identifier pos 0 0 res $primary_monitor_resolution scale $primary_monitor_scale
output DP-3 pos $secondary_monitor_x_offset 0 res 1920x1200 output $secondary_monitor_identifier pos $secondary_monitor_x_offset 0 res 1920x1200
output * bg $background fill output * bg $background fill

View file

@ -1,6 +1,7 @@
set $primary_monitor_identifier eDP-1 set $primary_monitor_identifier eDP-1
set $primary_monitor_resolution 3840x2400 set $primary_monitor_resolution 3840x2400
set $primary_monitor_scale 2 set $primary_monitor_scale 2
set $secondary_monitor_identifier DP-6
set $secondary_monitor_x_offset 1920 set $secondary_monitor_x_offset 1920
set $audio_out alsa_output.pci-0000_00_1f.3.analog-stereo set $audio_out alsa_output.pci-0000_00_1f.3.analog-stereo

View file

@ -1,6 +1,7 @@
set $primary_monitor_identifier eDP-1 set $primary_monitor_identifier eDP-1
set $primary_monitor_resolution 1920x1080 set $primary_monitor_resolution 1920x1080
set $primary_monitor_scale 1 set $primary_monitor_scale 1
set $secondary_monitor_identifier DP-3
set $secondary_monitor_x_offset 1920 set $secondary_monitor_x_offset 1920
set $audio_out alsa_output.pci-0000_00_1b.0.analog-stereo set $audio_out alsa_output.pci-0000_00_1b.0.analog-stereo