From c905c4cdb66b1fff7d68dd4cf3ef53252e23abaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Sat, 31 Jan 2026 01:22:31 +0100 Subject: [PATCH] feat(sway): add multi host multi output support --- .gitignore | 1 + sway/config | 1 + sway/config.d/40-theme.conf | 4 ++-- sway/config.d/50-keybind.conf | 11 +++++++++++ sway/host.d/matej-tower.conf | 2 ++ 5 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 sway/host.d/matej-tower.conf diff --git a/.gitignore b/.gitignore index 045d2ed..ed921c9 100644 --- a/.gitignore +++ b/.gitignore @@ -55,6 +55,7 @@ ghostty/* sway/* !sway/config !sway/config.d +!sway/host.d !swaylock swaylock/* diff --git a/sway/config b/sway/config index fc86187..ab991be 100644 --- a/sway/config +++ b/sway/config @@ -1,2 +1,3 @@ +include host.d/"$(hostname)".conf include config.d/* include /etc/sway/config.d/* diff --git a/sway/config.d/40-theme.conf b/sway/config.d/40-theme.conf index bf02e8f..e9a0d05 100644 --- a/sway/config.d/40-theme.conf +++ b/sway/config.d/40-theme.conf @@ -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 diff --git a/sway/config.d/50-keybind.conf b/sway/config.d/50-keybind.conf index 2cd84dc..0f70b62 100644 --- a/sway/config.d/50-keybind.conf +++ b/sway/config.d/50-keybind.conf @@ -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 diff --git a/sway/host.d/matej-tower.conf b/sway/host.d/matej-tower.conf new file mode 100644 index 0000000..a93b9e4 --- /dev/null +++ b/sway/host.d/matej-tower.conf @@ -0,0 +1,2 @@ +output HDMI-A-1 resolution 2560x1440 position 0,0 +output DP-2 resolution 2560x1440 position 2560,0