|
|
|
|
@ -118,17 +118,17 @@ bindsym $mod+n exec swaync-client -t -sw
|
|
|
|
|
### Discard all notifications
|
|
|
|
|
bindsym $mod+Ctrl+n exec swaync-client -C
|
|
|
|
|
### Toggle do-not-disturb mode
|
|
|
|
|
bindsym $mod+Shift+n exec swaync-client -d
|
|
|
|
|
bindsym $mod+Shift+n exec swaync-client -d
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
## General control
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
### Kill current application
|
|
|
|
|
bindsym $mod+Shift+q kill
|
|
|
|
|
bindsym $mod+Shift+q kill
|
|
|
|
|
bindsym Alt+F4 kill
|
|
|
|
|
### Reload Sway configuration
|
|
|
|
|
bindsym $mod+Shift+c reload
|
|
|
|
|
bindsym $mod+Shift+c reload
|
|
|
|
|
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
@ -170,7 +170,7 @@ bindsym $mod+Shift+$down move down
|
|
|
|
|
### Move focused window up
|
|
|
|
|
bindsym $mod+Shift+$up move up
|
|
|
|
|
### Move focused window right
|
|
|
|
|
bindsym $mod+Shift+$right move right
|
|
|
|
|
bindsym $mod+Shift+$right move right
|
|
|
|
|
bindsym $mod+Shift+Left move left
|
|
|
|
|
bindsym $mod+Shift+Down move down
|
|
|
|
|
bindsym $mod+Shift+Up move up
|
|
|
|
|
@ -184,13 +184,13 @@ bindsym $mod+Shift+Ctrl+$right move workspace to output right
|
|
|
|
|
### Move focused workspace to monitor up
|
|
|
|
|
bindsym $mod+Shift+Ctrl+$up move workspace to output up
|
|
|
|
|
### Move focused workspace to monitor down
|
|
|
|
|
bindsym $mod+Shift+Ctrl+$down move workspace to output down
|
|
|
|
|
bindsym $mod+Shift+Ctrl+$down move workspace to output down
|
|
|
|
|
bindsym $mod+Shift+Ctrl+Left move workspace to output left
|
|
|
|
|
bindsym $mod+Shift+Ctrl+Right move workspace to output right
|
|
|
|
|
bindsym $mod+Shift+Ctrl+Up move workspace to output up
|
|
|
|
|
bindsym $mod+Shift+Ctrl+Down move workspace to output down
|
|
|
|
|
|
|
|
|
|
### Focus workspace 1
|
|
|
|
|
### Focus workspace 1
|
|
|
|
|
bindsym $mod+1 workspace number 1
|
|
|
|
|
### Focus workspace 2
|
|
|
|
|
bindsym $mod+2 workspace number 2
|
|
|
|
|
@ -209,7 +209,7 @@ bindsym $mod+8 workspace number 8
|
|
|
|
|
### Focus workspace 9
|
|
|
|
|
bindsym $mod+9 workspace number 9
|
|
|
|
|
### Focus workspace 10
|
|
|
|
|
bindsym $mod+0 workspace number 10
|
|
|
|
|
bindsym $mod+0 workspace number 10
|
|
|
|
|
|
|
|
|
|
### Move focused window to workspace 1
|
|
|
|
|
bindsym $mod+Shift+1 move container to workspace number 1; workspace number 1
|
|
|
|
|
@ -230,14 +230,14 @@ bindsym $mod+Shift+8 move container to workspace number 8; workspace number 8
|
|
|
|
|
### Move focused window to workspace 9
|
|
|
|
|
bindsym $mod+Shift+9 move container to workspace number 9; workspace number 9
|
|
|
|
|
### Move focused window to workspace 10
|
|
|
|
|
bindsym $mod+Shift+0 move container to workspace number 10; workspace number 10
|
|
|
|
|
bindsym $mod+Shift+0 move container to workspace number 10; workspace number 10
|
|
|
|
|
|
|
|
|
|
### Rename current workspace
|
|
|
|
|
bindsym $mod+Shift+r exec "NUM=$(swaymsg -t get_workspaces | jq '.[] | select(.focused) | .num'); read -r NEWNAME rest < <(fuzzel --dmenu --prompt-only 'Rename: '); [[ $NEWNAME =~ '^[0-9]+:?' ]] || NEWNAME=$NUM:$NEWNAME; sway rename workspace to $NEWNAME"
|
|
|
|
|
bindsym $mod+Shift+r exec "sway rename workspace to $(swaymsg -t get_workspaces | jq '.[] | select(.focused) | .num'):$(fuzzel --dmenu --prompt-only 'Rename: ')"
|
|
|
|
|
### Focus new workspace
|
|
|
|
|
bindsym $mod+grave exec "NUM=$(swaymsg -t get_workspaces | jq '[range(1; 100)] - map(.num) | min'); sway workspace number $NUM"
|
|
|
|
|
bindsym $mod+grave exec "NUM=$(swaymsg -t get_workspaces | jq 'map(.num) | max + 1'); sway workspace number $NUM"
|
|
|
|
|
### Move focused window to new workspace
|
|
|
|
|
bindsym $mod+Shift+grave exec "NUM=$(swaymsg -t get_workspaces | jq '[range(1; 100)] - map(.num) | min'); sway move container to workspace number $NUM; sway workspace number $NUM"
|
|
|
|
|
bindsym $mod+Shift+grave exec "NUM=$(swaymsg -t get_workspaces | jq 'map(.num) | max + 1'); sway move container to workspace number $NUM; sway workspace number $NUM"
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
## Tiling & Layout
|
|
|
|
|
@ -260,7 +260,7 @@ bindsym $mod+space focus mode_toggle
|
|
|
|
|
### Toggle window between tiled and floating areas
|
|
|
|
|
bindsym $mod+Shift+space floating toggle
|
|
|
|
|
### Move focus to parent container
|
|
|
|
|
bindsym $mod+a focus parent
|
|
|
|
|
bindsym $mod+a focus parent
|
|
|
|
|
|
|
|
|
|
# TODO if the last floating window in the workspace disappears, toggle back to tiling
|
|
|
|
|
|
|
|
|
|
@ -271,14 +271,14 @@ bindsym $mod+a focus parent
|
|
|
|
|
### Minimize focused window
|
|
|
|
|
bindsym $mod+Shift+minus move scratchpad
|
|
|
|
|
### Show next minimized window
|
|
|
|
|
bindsym $mod+minus scratchpad show
|
|
|
|
|
bindsym $mod+minus scratchpad show
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Resizing containers
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
### Enter resize mode
|
|
|
|
|
bindsym $mod+r mode "resize"
|
|
|
|
|
bindsym $mod+r mode "resize"
|
|
|
|
|
mode "resize" {
|
|
|
|
|
### Shrink the current container's width
|
|
|
|
|
bindsym $left resize shrink width 10px
|
|
|
|
|
@ -287,14 +287,14 @@ mode "resize" {
|
|
|
|
|
### Shrink the current container's height
|
|
|
|
|
bindsym $up resize shrink height 10px
|
|
|
|
|
### Grow the current container's height
|
|
|
|
|
bindsym $right resize grow width 10px
|
|
|
|
|
bindsym $right resize grow width 10px
|
|
|
|
|
bindsym Left resize shrink width 10px
|
|
|
|
|
bindsym Down resize grow height 10px
|
|
|
|
|
bindsym Up resize shrink height 10px
|
|
|
|
|
bindsym Right resize grow width 10px
|
|
|
|
|
|
|
|
|
|
# Return to normal mode
|
|
|
|
|
bindsym Return mode "default"
|
|
|
|
|
bindsym Return mode "default"
|
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|