EDF3ON62GLSOZZESDVKKV3GWCXWZMMDJBKJOO7TJ6MIK63ED67FQC Mod+Tab repeat=false { spawn-sh "output=$(niri msg windows | rg -U -o 'Window ID (\\d+):( \\(focused\\))?.*\\n\\W*Title: \"(.*)\".*\\n\\W*App ID: \"(.*)\"' -r '$4 : $3 $1 $2'); focused_id=$(echo \"$output\" | grep '(focused)$' | awk '{print $(NF-1)}'); echo \"$output\" | sed 's/ (focused)$//' | awk -v fid=\"$focused_id\" '{id=$NF; if(id >= fid) print (id - fid) \" \" $0; else print (id - fid + 1000) \" \" $0}' | sort -n | awk '{$1=\"\"; print substr($0,2)}' | tofi | awk '{print $NF}' | xargs -I {} niri msg action focus-window --id {}"; }
Mod+Tab repeat=false { spawn-sh "output=$(niri msg windows | rg -U -o 'Window ID (\\d+):( \\(focused\\))?.*\\n\\W*Title: \"(.*)\".*\\n\\W*App ID: \"(.*)\"' -r '$4 : $3 $1 $2'); focused_id=$(echo \"$output\" | rg '(focused)$' | awk '{print $(NF-1)}'); echo \"$output\" | sed 's/ (focused)$//' | awk -v fid=\"$focused_id\" '{id=$NF; if(id >= fid) print (id - fid) \" \" $0; else print (id - fid + 1000) \" \" $0}' | sort -n | awk '{$1=\"\"; print substr($0,2)}' | tofi | awk '{print $NF}' | xargs -I {} niri msg action focus-window --id {}"; }
Mod+Shift+K { move-window-to-workspace-up; }Mod+Shift+J { move-window-to-workspace-down; }
Mod+Shift+K { spawn-sh "if niri msg focused-window | rg 'Is floating: yes'; then niri msg action move-floating-window --y -50; else niri msg action move-window-to-workspace-up; fi"; }Mod+Shift+J { spawn-sh "if niri msg focused-window | rg 'Is floating: yes'; then niri msg action move-floating-window --y +50; else niri msg action move-window-to-workspace-down; fi"; }
Mod+Up { spawn-sh "niri msg action set-window-height +100; niri msg action move-window-up"; }Mod+Down { spawn-sh "niri msg action set-window-height -100; niri msg action move-window-down"; }Mod+Right { spawn-sh "niri msg action set-window-width +100; niri msg action move-column-left"; }Mod+Left { spawn-sh "niri msg action set-window-width -100; niri msg action move-column-right"; }
Mod+Up { spawn-sh "niri msg action set-window-height +100; niri msg action move-floating-window --y -50"; }Mod+Down { spawn-sh "niri msg action set-window-height -100; niri msg action move-floating-window --y +50"; }Mod+Right { spawn-sh "niri msg action set-window-width +100; niri msg action move-floating-window --x -50"; }Mod+Left { spawn-sh "niri msg action set-window-width -100; niri msg action move-floating-window --x +50"; }