sway: Add workspace configuration

This commit is contained in:
histalek 2021-11-04 17:50:55 +01:00
parent 8671bb7ffb
commit 20d990ec61
No known key found for this signature in database
GPG key ID: ED1D6449704FDE03

View file

@ -16,7 +16,7 @@ for_window [app_id="^launcher$"] floating enable, sticky enable, border pixel 10
## Use this when running 'alacritty' as term
set $menu $term --class='launcher' -e sway-launcher-desktop
## Output configuration
### Output configuration
output DP-3 {
resolution 1920x1080
position 0,0
@ -34,10 +34,62 @@ output DP-2 {
bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
}
### Workspace configuration
## Define Workspaces
#nerdfonts cheat sheet: https://www.nerdfonts.com/cheat-sheet
set $ws1 1:  
set $ws2 2: 
set $ws3 3:3
set $ws4 4:4
set $ws5 5:5
set $ws6 6:6
set $ws7 7:7
set $ws8 8:8
set $ws9 9:9
set $ws0 10:10
set $wsF1 11: 
set $wsF2 12:12
set $wsF3 13:13
set $wsF4 14:14
set $wsF5 15:  
set $wsF6 16:  
set $wsF7 17: 
set $wsF8 18:18
set $wsF9 19: 
set $wsF10 20:20
set $wsF11 21:  
set $wsF12 22:22
## Bind Workspaces to outputs
workspace 1 output DP-3
workspace 2 output HDMI-A-1
workspace 3 output DP-2
workspace $ws1 output DP-3
workspace $ws2 output HDMI-A-1
workspace $ws3 output DP-2
workspace $wsF1 output DP-3
workspace $wsF2 output DP-3
workspace $wsF3 output DP-3
workspace $wsF4 output DP-3
workspace $wsF5 output HDMI-A-1
workspace $wsF6 output HDMI-A-1
workspace $wsF7 output HDMI-A-1
workspace $wsF8 output HDMI-A-1
workspace $wsF9 output DP-2
workspace $wsF10 output DP-2
workspace $wsF11 output DP-2
workspace $wsF12 output DP-2
## Default Workspaces for common programs
# Get app_id and/or class for all open windows:
# `swaymsg -t get_tree | grep app_id`
# `swaymsg -t get_tree | grep class`
assign [app_id="^virt-manager$"] $ws1
#assign [app_id="^org.keepassxc.KeePassXC$"] $ws1
assign [app_id="^thunderbird$"] $wsF1
assign [app_id="^evolution$"] $wsF5
assign [class="^Brave-browser$"] $ws2
assign [class="^TeamSpeak 3$"] $wsF6
assign [class="^Signal$"] $wsF6
assign [class="^discord$"] $wsF7
### Idle configuration
#
@ -122,49 +174,52 @@ input "type:pointer" {
# 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
# Switch with keypad number keys
bindsym $mod+KP_1 workspace number 1
bindsym $mod+KP_2 workspace number 2
bindsym $mod+KP_3 workspace number 3
bindsym $mod+KP_4 workspace number 4
bindsym $mod+KP_5 workspace number 5
bindsym $mod+KP_6 workspace number 6
bindsym $mod+KP_7 workspace number 7
bindsym $mod+KP_8 workspace number 8
bindsym $mod+KP_9 workspace number 9
bindsym $mod+KP_0 workspace number 10
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws0
bindsym $mod+F1 workspace $wsF1
bindsym $mod+F2 workspace $wsF2
bindsym $mod+F3 workspace $wsF3
bindsym $mod+F4 workspace $wsF4
bindsym $mod+F5 workspace $wsF5
bindsym $mod+F6 workspace $wsF6
bindsym $mod+F7 workspace $wsF7
bindsym $mod+F8 workspace $wsF8
bindsym $mod+F9 workspace $wsF9
bindsym $mod+F10 workspace $wsF10
bindsym $mod+F11 workspace $wsF11
bindsym $mod+F12 workspace $wsF12
# 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
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
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
# Move with keypad number keys
bindsym $mod+Shift+KP_1 move container to workspace number 1
bindsym $mod+Shift+KP_2 move container to workspace number 2
bindsym $mod+Shift+KP_3 move container to workspace number 3
bindsym $mod+Shift+KP_4 move container to workspace number 4
bindsym $mod+Shift+KP_5 move container to workspace number 5
bindsym $mod+Shift+KP_6 move container to workspace number 6
bindsym $mod+Shift+KP_7 move container to workspace number 7
bindsym $mod+Shift+KP_8 move container to workspace number 8
bindsym $mod+Shift+KP_9 move container to workspace number 9
bindsym $mod+Shift+KP_0 move container to workspace number 10
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws0
bindsym $mod+Shift+F1 move container to workspace $wsF1
bindsym $mod+Shift+F2 move container to workspace $wsF2
bindsym $mod+Shift+F3 move container to workspace $wsF3
bindsym $mod+Shift+F4 move container to workspace $wsF4
bindsym $mod+Shift+F5 move container to workspace $wsF5
bindsym $mod+Shift+F6 move container to workspace $wsF6
bindsym $mod+Shift+F7 move container to workspace $wsF7
bindsym $mod+Shift+F8 move container to workspace $wsF8
bindsym $mod+Shift+F9 move container to workspace $wsF9
bindsym $mod+Shift+F10 move container to workspace $wsF10
bindsym $mod+Shift+F11 move container to workspace $wsF11
bindsym $mod+Shift+F12 move container to workspace $wsF12
#
# Layout stuff:
#
@ -227,10 +282,6 @@ mode "resize" {
}
bindsym $mod+r mode "resize"
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
swaybar_command waybar
}