.config/sway/modes/default
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
### Key bindings # # Basics: # ## Launch // Terminal ## $bindsym $mod+Return exec $term_cwd $bindsym $mod+Shift+Return exec $term ## Action // Kill focused window ## $bindsym $mod+Shift+q kill ## Launch // Open launcher ## $bindsym $mod+d exec $menu ## Launch // Open clipboard ## $bindsym $mod+Shift+p exec $clipboard # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. # Despite the name, also works for non-floating windows. # Change normal to inverse to use left mouse button for resizing and right # mouse button for dragging. floating_modifier $mod normal ## Action // Reload Sway Configuration ## $bindsym $mod+Shift+c reload ## Action // Toggle Waybar ## # --locked flags allow the buttons to be used whilst the screen is locked. #$bindsym $mod+Shift+b exec pkill -SIGUSR1 waybar $bindsym --locked XF86AudioRaiseVolume exec $volume_up $bindsym --locked XF86AudioLowerVolume exec $volume_down $bindsym --locked XF86AudioMute exec $volume_mute $bindsym XF86AudioMicMute exec $mic_mute $bindsym --locked XF86MonBrightnessUp exec $brightness_up $bindsym --locked XF86MonBrightnessDown exec $brightness_down $bindsym --locked XF86AudioPlay exec playerctl play-pause $bindsym XF86AudioNext exec playerctl next $bindsym XF86AudioPrev exec playerctl previous $bindsym XF86Search exec $menu $bindsym XF86PowerOff exec $shutdown $bindsym XF86TouchpadToggle input type:touchpad events toggle enabled disabled # Moving around: # # Move your focus around ## Navigation // Move focus // $mod + ↑ ↓ ← → ## $bindsym $mod+$left focus left $bindsym $mod+$down focus down $bindsym $mod+$up focus up $bindsym $mod+$right focus right $bindsym $mod+j focus left $bindsym $mod+k focus down $bindsym $mod+l focus up $bindsym $mod+semicolon focus right ## Navigation // Move focused window // $mod + Shift + ↑ ↓ ← → ## $bindsym $mod+Shift+j move left $bindsym $mod+Shift+k move down $bindsym $mod+Shift+l move up $bindsym $mod+Shift+semicolon move right $bindsym $mod+Shift+$left move left $bindsym $mod+Shift+$down move down $bindsym $mod+Shift+$up move up $bindsym $mod+Shift+$right move right # # Workspaces: # ## Navigation // Switch workspace // $mod + [number] ## $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 $ws10 $bindsym $mod+minus workspace $ws11 $bindsym $mod+equal workspace $ws12 set $focus_ws [ $focus_after_move == 'true' ] && swaymsg workspace ## Action // Move focused window to workspace // $mod + Shift + [number] ## $bindsym $mod+Shift+1 move container to workspace $ws1, exec $focus_ws $ws1 $bindsym $mod+Shift+2 move container to workspace $ws2, exec $focus_ws $ws2 $bindsym $mod+Shift+3 move container to workspace $ws3, exec $focus_ws $ws3 $bindsym $mod+Shift+4 move container to workspace $ws4, exec $focus_ws $ws4 $bindsym $mod+Shift+5 move container to workspace $ws5, exec $focus_ws $ws5 $bindsym $mod+Shift+6 move container to workspace $ws6, exec $focus_ws $ws6 $bindsym $mod+Shift+7 move container to workspace $ws7, exec $focus_ws $ws7 $bindsym $mod+Shift+8 move container to workspace $ws8, exec $focus_ws $ws8 $bindsym $mod+Shift+9 move container to workspace $ws9, exec $focus_ws $ws9 $bindsym $mod+Shift+0 move container to workspace $ws10, exec $focus_ws $ws10 $bindsym $mod+Shift+minus move container to workspace $ws11, exec $focus_ws $ws11 $bindsym $mod+Shift+equal move container to workspace $ws12, exec $focus_ws $ws12 ## Launch // Open launcher in a new workspace ## $bindsym $mod+Shift+d exec /usr/share/sway/scripts/first-empty-workspace.py --switch, exec $menu ## Navigation // Switch to a new workspace ## #$bindsym $mod+n exec /usr/share/sway/scripts/first-empty-workspace.py --switch ## Action // Move focused window to a new workspace ## #$bindsym $mod+Shift+n exec /usr/share/sway/scripts/first-empty-workspace.py --move ## Action // Move focused window to a new workspace and switch there ## #$bindsym $mod+Shift+m exec /usr/share/sway/scripts/first-empty-workspace.py --move --switch # # Layout stuff: # ## Setting // Split windows horizontally ## $bindsym $mod+h splith ## Setting // Split windows vertically ## $bindsym $mod+v splitv ## Action // Switch to window stacking ## $bindsym $mod+s layout stacking ## Action // Switch to window tabbing ## $bindsym $mod+w layout tabbed ## Action // Toggle window splitting ## $bindsym $mod+e layout toggle split ## Action // Toggle fullscreen ## $bindsym $mod+f fullscreen ## Action // Toggle global fullscreen ## $bindsym $mod+Shift+f fullscreen global ## Action // Toggle floating ## $bindsym $mod+Shift+space floating toggle ## Navigation // Toggle focus between tiling and floating ## $bindsym $mod+space focus mode_toggle ## Navigation // Swap focus to the parent window ## $bindsym $mod+a focus parent ## Launch // Toggle Help ## $bindsym $mod+question exec $help default_border pixel 1 hide_edge_borders smart |