Files
nix-config/home/linux/gui/niri/reorder-workspaces.sh
0x0D 120dd53a7f fix(niri): add workspaces 7, 8, 9 for proper bar ordering (#246)
* Create reorder-workspaces.sh
* Update keybindings.kdl
* Update config.kdl
* Update niri-hardware.kdl
* fix(niri): add workspaces 7, 8, 9 for proper bar ordering
2026-03-16 00:04:34 +08:00

18 lines
872 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Reorder named workspaces so indices match their numeric prefixes:
# 1 → "1terminal", 2 → "2browser", ..., 6 → "6file", 10 → "0other".
# Requires a running niri session and the `niri msg` command in PATH.
niri msg action move-workspace-to-index 1 --reference "1terminal"
niri msg action move-workspace-to-index 2 --reference "2browser"
niri msg action move-workspace-to-index 3 --reference "3chat"
niri msg action move-workspace-to-index 4 --reference "4music"
niri msg action move-workspace-to-index 5 --reference "5mail"
niri msg action move-workspace-to-index 6 --reference "6file"
niri msg action move-workspace-to-index 7 --reference "7"
niri msg action move-workspace-to-index 8 --reference "8"
niri msg action move-workspace-to-index 9 --reference "9"
niri msg action move-workspace-to-index 10 --reference "0other"