Skip to content

Allow i3 users to blazingly fast rename their i3 workspaces

Notifications You must be signed in to change notification settings

Pismice/rename-i3-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Change i3 workspace name blazingly fast ⚡🚀

Installation

1. Clone the repository

git clone https://github.com/Pismice/rename-i3-workspace

2. Build it using Zig 0.12.0

Might work with other Zig versions but that is unlikely.

zig build

3. Move the binary to your PATH

mv ./zig-out/bin/rename-i3-workspace /usr/local/bin

Usage

Now from anywhere in your system, you can from your terminal use rename-i3-workspace.

This script takes 2 parameters:

  1. The workspace number you want to change
  2. The new name of the workspace

Exemple: You had a workspace named "1: Terminal" or even "1" and you want to change it to "1: Code"

rename-i3-workspace 1 Code

Comparaison between Python, Bash and Zig

You can find the comparaisons between the solutions I did.

Possible improvements

  • Check the arguments passed to the program
  • Add the possibility to rename a workspace to a multi-word name
  • Nicer looking codes, using comptime to read the structure instead of raw going after specific chains of character :)

Alternative(s)

For education purposes, I have also implemented this in Python. You can find it in the other folder.

About

Allow i3 users to blazingly fast rename their i3 workspaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published