This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

2configs/desktops/sway: use sway-overfocus for mod+Tab, remove split bindings

+2 -58
+2 -58
2configs/desktops/sway/default.nix
··· 247 247 248 248 # Switch the current container between different layout styles 249 249 bindsym $mod+s layout stacking 250 - bindsym $mod+w exec ${ 251 - lib.getExe ( 252 - pkgs.writeShellApplication { 253 - name = "sway-tabbed"; 254 - runtimeInputs = [ 255 - pkgs.sway 256 - pkgs.jq 257 - ]; 258 - text = '' 259 - # Get all leaf window IDs on the focused workspace 260 - ids=$(swaymsg -t get_tree | jq -r ' 261 - .. | select(.type? == "workspace") | 262 - select(.. | .focused? // false) | 263 - [.. | select(.type? == "con" and (.nodes? | length) == 0 and .pid? > 0)] | 264 - .[].id 265 - ') 266 - count=$(echo "$ids" | wc -l) 267 - if [ "$count" -le 1 ]; then 268 - swaymsg layout tabbed 269 - exit 0 270 - fi 271 - # Move all windows to scratchpad, then back — this flattens the tree 272 - for id in $ids; do 273 - swaymsg "[con_id=$id]" move scratchpad 274 - done 275 - swaymsg layout tabbed 276 - for id in $ids; do 277 - swaymsg "[con_id=$id]" move workspace current 278 - done 279 - ''; 280 - } 281 - ) 282 - } 250 + bindsym $mod+w layout tabbed 283 251 bindsym $mod+e layout toggle split 284 252 285 253 # Make the current focus fullscreen ··· 361 329 362 330 bindsym $mod+y exec /run/current-system/sw/bin/switch-theme toggle 363 331 364 - bindsym $mod+Tab exec ${ 365 - lib.getExe ( 366 - pkgs.writeShellApplication { 367 - name = "sway-focus-next"; 368 - runtimeInputs = [ 369 - pkgs.sway 370 - pkgs.jq 371 - ]; 372 - text = '' 373 - swaymsg -t get_tree | jq -r ' 374 - # Find the focused workspace 375 - .. | select(.type? == "workspace") | 376 - select(.. | .focused? // false) | 377 - # Collect all leaf windows (containers with a pid) in tree order 378 - [.. | select(.type? == "con" and (.nodes? | length) == 0 and .pid? > 0)] | 379 - # Find focused index and pick next (wrapping) 380 - (map(.focused) | index(true)) as $i | 381 - if $i == null then empty 382 - else .[(($i + 1) % length)].id 383 - end 384 - ' | head -n1 | xargs -I{} swaymsg '[con_id={}]' focus 385 - ''; 386 - } 387 - ) 388 - } 332 + bindsym $mod+Tab exec ${pkgs.sway-overfocus}/bin/sway-overfocus split-rw group-dw split-dw 389 333 bindsym $mod+Escape workspace back_and_forth 390 334 391 335 # Focus primary output