Fix multi-monitor sway configs
This commit is contained in:
parent
cb2c0512d3
commit
f47510f9ca
5 changed files with 16 additions and 12 deletions
0
sway/automation.sh
Normal file → Executable file
0
sway/automation.sh
Normal file → Executable file
22
sway/config
22
sway/config
|
@ -137,16 +137,17 @@ exec waybar
|
|||
# Workspaces:
|
||||
#
|
||||
# Switch to workspace
|
||||
bindsym $mod+1 workspace number 1
|
||||
bindsym $mod+2 workspace number 2
|
||||
bindsym $mod+3 workspace number 3
|
||||
bindsym $mod+4 workspace number 4
|
||||
bindsym $mod+5 workspace number 5
|
||||
bindsym $mod+6 workspace number 6
|
||||
bindsym $mod+7 workspace number 7
|
||||
bindsym $mod+8 workspace number 8
|
||||
bindsym $mod+9 workspace number 9
|
||||
bindsym $mod+0 workspace number 10
|
||||
bindsym $mod+1 exec "~/.config/sway/switch-workspace.sh 1"
|
||||
bindsym $mod+2 exec "~/.config/sway/switch-workspace.sh 2"
|
||||
bindsym $mod+3 exec "~/.config/sway/switch-workspace.sh 3"
|
||||
bindsym $mod+4 exec "~/.config/sway/switch-workspace.sh 4"
|
||||
bindsym $mod+5 exec "~/.config/sway/switch-workspace.sh 5"
|
||||
bindsym $mod+6 exec "~/.config/sway/switch-workspace.sh 6"
|
||||
bindsym $mod+7 exec "~/.config/sway/switch-workspace.sh 7"
|
||||
bindsym $mod+8 exec "~/.config/sway/switch-workspace.sh 8"
|
||||
bindsym $mod+9 exec "~/.config/sway/switch-workspace.sh 9"
|
||||
bindsym $mod+0 exec "~/.config/sway/switch-workspace.sh 10"
|
||||
bindsym $mod+equal workspace side
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number 1
|
||||
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+9 move container to workspace number 9
|
||||
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.
|
||||
# We just use 1-10 as the default.
|
||||
#
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
output "Acer Technologies EK271U E 14160766B3W01" mode 2560x1440@100hz adaptive_sync on
|
||||
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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/bin/sh
|
||||
swaylock -f -i ~/.config/sway/background.png
|
||||
systemctl suspend
|
||||
iwctl station wlan0 connect Wifey
|
||||
|
|
2
sway/switch-workspace.sh
Executable file
2
sway/switch-workspace.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
swaymsg "workspace number ${1}; move workspace to output 'Acer Technologies EK271U E 14160766B3W01'"
|
Loading…
Reference in a new issue