add per-host sway config sub-import

This commit is contained in:
Mark Riedesel 2021-09-30 11:02:36 -04:00
parent 528c998ee4
commit 4cee3e6b2d
2 changed files with 15 additions and 17 deletions

View file

@ -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 {

12
_config/sway/hosts/nisse Normal file
View file

@ -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