A simple bash script to rename the current Hyprland workspace.
wsname.sh is a utility that allows you to quickly rename your active Hyprland workspace from the command line. It automatically detects the current workspace and applies the new name using Hyprland's IPC interface.
-
Clone this repository or download the script
-
Make the script executable:
chmod +x wsname.sh
-
(Optional) Make it globally available:
ln -sf /path/to/wsname.sh ~/.local/bin/wsnameEnsure
~/.local/binis in your PATH.
From the script directory:
./wsname.sh "Workspace Name"If installed globally:
wsname "Workspace Name"# Rename current workspace to "Development"
./wsname.sh "Development"
# Rename to "Web Project"
./wsname.sh "Web Project"
# Single word names work too
./wsname.sh Gaming- Hyprland window manager
hyprctlcommand (comes with Hyprland)- Bash
- Retrieves the current active workspace ID using
hyprctl activeworkspace - Uses
hyprctl dispatch renameworkspaceto set the new name - Provides feedback on success or failure