From 2a4f668d1b8cda6c971bb6ed82b8d185d13a4a5a Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Tue, 15 Sep 2020 02:04:54 +0200 Subject: [PATCH] individualization of sway --- .config/sway/{config => config##template} | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) rename .config/sway/{config => config##template} (95%) diff --git a/.config/sway/config b/.config/sway/config##template similarity index 95% rename from .config/sway/config rename to .config/sway/config##template index b1939fc..a9150b0 100644 --- a/.config/sway/config +++ b/.config/sway/config##template @@ -1,3 +1,6 @@ +# WARNING: Do not edit this file. +# It was generated by processing {{ yadm.source }} + # ------------------------------------------------------------------------------ # Variables # ------------------------------------------------------------------------------ @@ -30,10 +33,14 @@ input 9456:311:Metadot_-_Das_Keyboard_Das_Keyboard_Model_S xkb_model "pc105" # ------------------------------------------------------------------------------ # Outputs # ------------------------------------------------------------------------------ +{% if yadm.hostname == "avior" %} output eDP-1 pos 0 0 res 3840x2400 scale 2 -output DP-3 pos 1920 0 res 1920x120 +{% else %} +output eDP-1 pos 0 0 res 1920x1080 +{% endif %} +output DP-3 pos 1920 0 res 1920x1200 -output * bg /usr/share/backgrounds/custom/mountain.jpg fill +output * bg /usr/share/backgrounds/default fill bindswitch --reload --locked lid:on output eDP-1 disable bindswitch --reload --locked lid:off output eDP-1 enable @@ -221,13 +228,7 @@ assign [class="^Microsoft Teams - Preview$"] 9 # ------------------------------------------------------------------------------ # Screenshot shortcuts # ------------------------------------------------------------------------------ -bindsym Print exec --no-startup-id scrot -bindsym Shift+Print exec --no-startup-id scrot -u - -# ------------------------------------------------------------------------------ -# Keyboard layout shortcut -# ------------------------------------------------------------------------------ -bindsym XF86LaunchA exec --no-startup-id xkb-switch -n && pkill -SIGRTMIN+12 i3blocks +bindsym Print exec --no-startup-id grim # ------------------------------------------------------------------------------ # WIFI shortcut