use sway include instead of yadm template
This commit is contained in:
parent
ba31089f59
commit
5da3017b7a
3 changed files with 30 additions and 18 deletions
|
@ -1,5 +1,15 @@
|
||||||
# WARNING: Do not edit this file.
|
# ------------------------------------------------------------------------------
|
||||||
# It was generated by processing {{ yadm.source }}
|
# Device specific include
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# This needs to set the following variables:
|
||||||
|
# $primary_monitor_identifier - Identifier of the primary monitor
|
||||||
|
# $primary_monitor_resolution - Resolution for the primary monitor
|
||||||
|
# $primary_monitor_scale - Scale factor for thr primary monitor
|
||||||
|
# $secondary_monitor_x_offset - X offset for the secondary monitor
|
||||||
|
# $audio_out - Name of the audio drain to be controlled by shortcuts
|
||||||
|
# $audio_in - Name of the audio source to be controlled by shortcuts
|
||||||
|
|
||||||
|
include config.local
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Variables
|
# Variables
|
||||||
|
@ -38,17 +48,13 @@ input 9456:311:Metadot_-_Das_Keyboard_Das_Keyboard_Model_S xkb_model "pc105"
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Outputs
|
# Outputs
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
{% if yadm.hostname == "avior" %}
|
output $primary_monitor_identifier pos 0 0 res $primary_monitor_resolution scale $primary_monitor_scale
|
||||||
output eDP-1 pos 0 0 res 3840x2400 scale 2
|
output DP-3 pos $secondary_monitor_x_offset 0 res 1920x1200
|
||||||
{% else %}
|
|
||||||
output eDP-1 pos 0 0 res 1920x1080
|
|
||||||
{% endif %}
|
|
||||||
output DP-3 pos 1920 0 res 1920x1200
|
|
||||||
|
|
||||||
output * bg /usr/share/backgrounds/default fill
|
output * bg /usr/share/backgrounds/default fill
|
||||||
|
|
||||||
bindswitch --reload --locked lid:on output eDP-1 disable
|
bindswitch --reload --locked lid:on output $primary_monitor_identifier disable
|
||||||
bindswitch --reload --locked lid:off output eDP-1 enable
|
bindswitch --reload --locked lid:off output $primary_monitor_identifier enable
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Font
|
# Font
|
||||||
|
@ -204,14 +210,6 @@ bindsym XF86Explorer exec --no-startup-id thunar
|
||||||
# Audio shortcuts
|
# Audio shortcuts
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
{% if yadm.hostname == "avior" %}
|
|
||||||
set $audio_out alsa_output.pci-0000_00_1f.3.analog-stereo
|
|
||||||
set $audio_in alsa_input.pci-0000_00_1f.3.analog-stereo
|
|
||||||
{% else %}
|
|
||||||
set $audio_out alsa_output.pci-0000_00_1b.0.analog-stereo
|
|
||||||
set $audio_in alsa_input.pci-0000_00_1b.0.analog-stereo
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume $audio_out +5%; pkill -RTMIN+10 i3blocks"
|
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume $audio_out +5%; pkill -RTMIN+10 i3blocks"
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume $audio_out -5%; pkill -RTMIN+10 i3blocks"
|
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume $audio_out -5%; pkill -RTMIN+10 i3blocks"
|
||||||
bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute $audio_out toggle; pkill -RTMIN+10 i3blocks"
|
bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute $audio_out toggle; pkill -RTMIN+10 i3blocks"
|
7
.config/sway/config.local##hostname.avior
Normal file
7
.config/sway/config.local##hostname.avior
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
set $primary_monitor_identifier eDP-1
|
||||||
|
set $primary_monitor_resolution 3840x2400
|
||||||
|
set $primary_monitor_scale 2
|
||||||
|
set $secondary_monitor_x_offset 1920
|
||||||
|
|
||||||
|
set $audio_out alsa_output.pci-0000_00_1f.3.analog-stereo
|
||||||
|
set $audio_in alsa_input.pci-0000_00_1f.3.analog-stereo
|
7
.config/sway/config.local##hostname.saiph
Normal file
7
.config/sway/config.local##hostname.saiph
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
set $primary_monitor_identifier eDP-1
|
||||||
|
set $primary_monitor_resolution 1920x1080
|
||||||
|
set $primary_monitor_scale 1
|
||||||
|
set $secondary_monitor_x_offset 1920
|
||||||
|
|
||||||
|
set $audio_out alsa_output.pci-0000_00_1b.0.analog-stereo
|
||||||
|
set $audio_in alsa_input.pci-0000_00_1b.0.analog-stereo
|
Loading…
Reference in a new issue