feat(sway): add multi host multi output support

This commit is contained in:
2026-01-31 01:22:31 +01:00
parent 6f11a13f1f
commit c905c4cdb6
5 changed files with 17 additions and 2 deletions

1
.gitignore vendored
View File

@@ -55,6 +55,7 @@ ghostty/*
sway/*
!sway/config
!sway/config.d
!sway/host.d
!swaylock
swaylock/*

View File

@@ -1,2 +1,3 @@
include host.d/"$(hostname)".conf
include config.d/*
include /etc/sway/config.d/*

View File

@@ -1,4 +1,4 @@
default_floating_border pixel 1
default_floating_border normal 1
default_border normal 1
# class border bground text indicator child_border
@@ -8,4 +8,4 @@ client.unfocused $bg1 $bg1 $gray $bg1 $bg1
client.urgent $red $red $bg0 $red $red
client.placeholder $bg1 $bg1 $fg $bg1 $bg1
font pango:JetBrains Mono Nerd Font 10
font pango:JetBrains Mono Nerd Font 14

View File

@@ -49,6 +49,17 @@ bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
bindsym $mod+Ctrl+1 workspace number 1 output current
bindsym $mod+Ctrl+2 workspace number 2 output current
bindsym $mod+Ctrl+3 workspace number 3 output current
bindsym $mod+Ctrl+4 workspace number 4 output current
bindsym $mod+Ctrl+5 workspace number 5 output current
bindsym $mod+Ctrl+6 workspace number 6 output current
bindsym $mod+Ctrl+7 workspace number 7 output current
bindsym $mod+Ctrl+8 workspace number 8 output current
bindsym $mod+Ctrl+9 workspace number 9 output current
bindsym $mod+Ctrl+0 workspace number 10 output current
# layout
bindsym $mod+b splith
bindsym $mod+v splitv

View File

@@ -0,0 +1,2 @@
output HDMI-A-1 resolution 2560x1440 position 0,0
output DP-2 resolution 2560x1440 position 2560,0