mh21 / i3-renameworkspaces Goto Github PK
View Code? Open in Web Editor NEWRename i3 workspaces to contain the names of the programs on them.
License: MIT License
Rename i3 workspaces to contain the names of the programs on them.
License: MIT License
Hi thanks for the script, but I had some issues with getting it to work.
You might want to consider to add some info into the Readme:
liblinux-inotify2-perl
which is availabe on Debian via sudo apt install liblinux-inotify2-perl
I used to bind the name of the workspace this way:
set $workspace1 "1: Terminal"
...
assign [class="URxvt"] $workspace1
...
bindsym $mod+1 workspace $workspace1
This needs to be changed to:
set $workspace1 "1"
...
assign [class="URxvt"] number $workspace1
..
bindsym $mod+1 workspace number $workspace1
Note the additional number
in the command
I have this config
{
"classes": {
"chromium": "www",
"xfce4-terminal": "term",
"gnome-terminal": "term",
"sublime_text": "subl",
"okular": "pdf",
"google-chrome": "www",
"firefox": "www"
},
"instances": {
"mail.google.com": "gmail"
}
}
with this xprop WM_CLASS(STRING) = "mail.google.com", "Chromium"
but the instance of mail.google.com always shows "www" instead of gmail,
I'm doing it wrong?
Thanks
edit: mail.com.google runs through a bash script to make it "web app"
When I was using this project with the Iconic Fonts (Font Awesome 5), I had the space-char rendered incorrectly looking like this.
Apparently, this is related to Pango as mentioned here, but the fix somehow did not work.
Anachron/i3blocks#53
However, using a workaround of having a transparent space (or any other char), has the same effect.
I changed https://github.com/mh21/i3-renameworkspaces/blob/master/i3-renameworkspaces.pl#L64
from
$newname = join(': ', $num, join(' ', @{$$ws{'windows'}}) || ());
to
$newname = join(': ', $num, join('<span foreground=\'#00000001\'> <span>', @{$$ws{'windows'}}) || ());
Please consider adding a comment above this line which mentions this issue/workaround.
Also, a note in the readme file referring to the PangoMarkupFormat which is available, would be helpful.
Hi,
thanks for the script, it makes i3 bar a whole lot more sense. A tiny problem is that it keeps pumping into the logs the error message:
Use of uninitialized value in lc at /home/..[path]../i3-renameworkspaces/i3-renameworkspaces.pl line 51.
(Using perl 5.30.3)
Can this be fixed? (unfortunately, I have no idea about perl).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.