Psykopear / i3autoname

Utility to add icons to i3 workspaces names

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

i3 Workspace Renamer

Program that renames i3 workspaces adding FontAwesome icons of the programs opened in the workspace to the name of the workspace itself.

This is a Rust port of autoname_workspace.py from justbuchanan

Usage

Download latest release and save it where you want, eg ~/.local/bin/i3autoname

Then run the program when i3 starts. For example add at the end of your ~/.config/i3/config:

exec --no-startup-id "~/.local/bin/i3autoname"

Build

Compile with:

cargo build --release

The file src/icons.rs is a map of appname to fontawesome icons. It is generated by the python script scripts/generate_icons.py:

If you want an updated version of the iconset, run:

./script/generate_icons.py > src/icons.rs

If you want to add some custom icons, modify the script

About

Utility to add icons to i3 workspaces names


Languages

Language:Rust 99.5%Language:Python 0.5%