From 4cee3e6b2ddab338e596cf35ec56992593ea0e93 Mon Sep 17 00:00:00 2001 From: Mark Riedesel Date: Thu, 30 Sep 2021 11:02:36 -0400 Subject: [PATCH] add per-host sway config sub-import --- _config/sway/config | 20 +++----------------- _config/sway/hosts/nisse | 12 ++++++++++++ 2 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 _config/sway/hosts/nisse diff --git a/_config/sway/config b/_config/sway/config index f7c368d..7147a85 100644 --- a/_config/sway/config +++ b/_config/sway/config @@ -132,16 +132,11 @@ bindsym $mod+Shift+e mode "$mode_system" font xft:artwiz lime 7 default_border pixel 5 font xft:Roboto 13 -#gaps inner 8 -# gaps outer 0 gaps inner 5 # app specific launch flags for_window [class="Peek"] floating enable -#set_from_resource $fg i3wm.color7 -#set_from_resource $bg i3wm.color2 -#set_from_resource $bgalt i3wm.color8 include "$HOME/.cache/wal/colors-sway" set $fg $color3 set $bg $color1 @@ -158,25 +153,16 @@ client.unfocused $bgalt $bgalt $fg $bg $bgalt # client.background $bg # autostart -#exec --no-startup-id wal -q -t -i ~/wallpaper --saturate 0.8 -# exec_always ~/.config/polybar/launch.sh exec_always mako +exec_always import-gsettings +exec systemctl --user import-environment input "type:keyboard" { xkb_options caps:swapescape } -set $monitor-center DP-1 -set $monitor-left DVI-D-1 -set $monitor-right DVI-I-1 +include "$HOME/.config/sway/hosts/`hostname`" -output $monitor-center pos 1080 500 res 3840x2160 -output $monitor-left pos 0 0 res 1920x1080 transform 90 -output $monitor-right pos 4920 0 res 1920x1080 transform 270 - -# output $monitor-center bg $wallpaper fill -# output $monitor-left bg $wallpaper fill -# output $monitor-right bg $wallpaper fill output * bg $wallpaper fill bar { diff --git a/_config/sway/hosts/nisse b/_config/sway/hosts/nisse new file mode 100644 index 0000000..b5d85b7 --- /dev/null +++ b/_config/sway/hosts/nisse @@ -0,0 +1,12 @@ +set $monitor-center DP-1 +set $monitor-left DP-2 +set $kamvas HDMI-A-1 + +output $monitor-center pos 2160 1080 res 3840x2160 +output $monitor-left pos 0 0 res 3840x2160 transform 270 +output $kamvas pos 2995 3240 + +set $kamvas-stylus '9580:109:HID_256c:006d' +set $kamvas-pad '9580:109:HID_256c:006d_Pad' +input $kamvas-stylus map_to_output $kamvas +input $kamvas-pad map_to_output $kamvas