Fix multi-monitor sway configs

This commit is contained in:
askiiart 2024-09-23 14:53:13 -05:00
parent cb2c0512d3
commit f47510f9ca
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
5 changed files with 16 additions and 12 deletions

0
sway/automation.sh Normal file → Executable file
View file

View file

@ -137,16 +137,17 @@ exec waybar
# Workspaces: # Workspaces:
# #
# Switch to workspace # Switch to workspace
bindsym $mod+1 workspace number 1 bindsym $mod+1 exec "~/.config/sway/switch-workspace.sh 1"
bindsym $mod+2 workspace number 2 bindsym $mod+2 exec "~/.config/sway/switch-workspace.sh 2"
bindsym $mod+3 workspace number 3 bindsym $mod+3 exec "~/.config/sway/switch-workspace.sh 3"
bindsym $mod+4 workspace number 4 bindsym $mod+4 exec "~/.config/sway/switch-workspace.sh 4"
bindsym $mod+5 workspace number 5 bindsym $mod+5 exec "~/.config/sway/switch-workspace.sh 5"
bindsym $mod+6 workspace number 6 bindsym $mod+6 exec "~/.config/sway/switch-workspace.sh 6"
bindsym $mod+7 workspace number 7 bindsym $mod+7 exec "~/.config/sway/switch-workspace.sh 7"
bindsym $mod+8 workspace number 8 bindsym $mod+8 exec "~/.config/sway/switch-workspace.sh 8"
bindsym $mod+9 workspace number 9 bindsym $mod+9 exec "~/.config/sway/switch-workspace.sh 9"
bindsym $mod+0 workspace number 10 bindsym $mod+0 exec "~/.config/sway/switch-workspace.sh 10"
bindsym $mod+equal workspace side
# Move focused container to workspace # Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2 bindsym $mod+Shift+2 move container to workspace number 2
@ -158,6 +159,7 @@ exec waybar
bindsym $mod+Shift+8 move container to workspace number 8 bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9 bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10 bindsym $mod+Shift+0 move container to workspace number 10
bindsym $mod+Shift+equal move container to workspace side
# Note: workspaces can have any name you want, not just numbers. # Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default. # We just use 1-10 as the default.
# #

View file

@ -1,5 +1,6 @@
output "Acer Technologies EK271U E 14160766B3W01" mode 2560x1440@100hz adaptive_sync on output "Acer Technologies EK271U E 14160766B3W01" mode 2560x1440@100hz adaptive_sync on
output "Hewlett Packard HP ZR22w CN41250H24" transform 270 output "Hewlett Packard HP ZR22w CN41250H24" transform 270
output "AU Optronics 0x463D" mode 1920x1080@60hz output "Hewlett Packard HP ZR22w CN41250FHX" transform 270
workspace side output "Hewlett Packard HP ZR22w CN41250FHX"
output * bg ~/.config/sway/backgrounds/logo.png center #1E1E2E output * bg ~/.config/sway/backgrounds/logo.png center #1E1E2E

View file

@ -1,4 +1,3 @@
#!/bin/sh #!/bin/sh
swaylock -f -i ~/.config/sway/background.png swaylock -f -i ~/.config/sway/background.png
systemctl suspend systemctl suspend
iwctl station wlan0 connect Wifey

2
sway/switch-workspace.sh Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
swaymsg "workspace number ${1}; move workspace to output 'Acer Technologies EK271U E 14160766B3W01'"