Skip to content

Instantly share code, notes, and snippets.

@justbuchanan
Last active March 1, 2021 17:21
Show Gist options
  • Save justbuchanan/70fdae0d5182f6039aa8383c06a3f4ad to your computer and use it in GitHub Desktop.
Save justbuchanan/70fdae0d5182f6039aa8383c06a3f4ad to your computer and use it in GitHub Desktop.
Show icons for open programs in i3's status bar. See a demo here: http://gfycat.com/AfraidAmusingCoyote
@TheMikeyR
Copy link

Works really great! I was wondering if you have any idea on how to make this work on e.g. 2 monitors, where the 2nd monitor use F1, F2 for the workspaces?

@justbuchanan
Copy link
Author

@TheMikeyR, I've been using it with my dual-monitor setup and haven't had any issues. Is there something in particular that wasn't working for you? The main thing you have to do in order for this script to work is to make your keyboard shortcuts reference your workspaces by number, rather than by name. See the "Configuration" section at the top of this file for more info on how to configure that. Let me know if that doesn't solve your problem!

@stndrf
Copy link

stndrf commented Jun 2, 2016

Is it possible to declare an default icon for unknown windows?

@justbuchanan
Copy link
Author

@r00tbox take a look at the icon_for_window() function. At the end it just returns '*' if it couldn't find a match. You can change the asterisk to something else if you'd like.

@zaidrpm
Copy link

zaidrpm commented Dec 28, 2017

How to install it?? Readme contains no instructions.

@justbuchanan
Copy link
Author

This gist has moved - please post any questions on the repository (linked above). The script file itself has instructions for how to install and use it, but feel free to open an GitHub issue if you have other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment