HLWM with B.A.R - GNU/Linux
Users browsing this thread: 1 Guest(s)
|
|||
By default hlwm uses dzen2, while nice (and clickable) I've always found the positioning and usage of multiple instances to get what you want annoying.
So when I moved to Herbstluftwm it was the first thing to go. Now the issue is the default panel script is made especially for dzen2 so in my case I just started with a new script entirely. Here are some useful functions I've made along the way: Code: #!/usr/bin/env bash Scrot: I don't reccomend using the mail function at present, its not really made to be in a loop, maybe make a second script, throw the function in there and run that on autostart looping once every 10 minutes or so then saving output to a file, then if [ ! $(cat <filename>) ].. you get the idea. For the mpcs function on tracks with no tags you might want to edit the sed bit to replace the path of wherever you keep such tracks (I tried making it replace all paths but it bugs out on fast loops.) The network function is the same, if using a slower loop it would be fine. The irc function assumes you are using weechat and notify.pl, just pop your username in there and you are good to go. If you notice I use tbar and not bar it is becouse I am using tbuck's fork with wrap around borders, the script works fine on either. Now lastly, all the icons vars, I use a font called ohsnap icons for my bar, terminusmod icons should work just fine as well, other icon fonts you would want to pop open a term using the font and display them so you can replace them: Code: urxvt -fn "-misc-ohsnap.icons-bold-r-normal--13-120-75-75-c-60-iso8859-1" Then: Code: for i in {50..255}; do printf "\\$(printf '%03o' $i)\n"; done |
|||
|
|||
I'm in love with that scrot.
The world is quaking from our Linux Thoughts!
|
|||
|
|||
I really need to update this, and stick those icons in an array.
|
|||
|
|||
I would make a function for icons.
Code: function icon { Then you could use anything as an icon without having to create a new variable/append your array. Other than that, nice post. Scripting a BAR config isn't much different from dzen, except for the different format. And by the way, if you're running multiple dzen instances, you're doing it wrong :P -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCA/IT d-(---)@ s+: a-- C+++(++++)$ UBL*+++ P+++>++++ L++ E W+++$ !N !o K !w !O M+>++ !V PS+++ PE !Y PGP+ !t-- !5 !X R@ tv- b+ DI D+ G e h r++ y+ ------END GEEK CODE BLOCK------ |
|||
|
|||
(24-12-2013, 05:30 AM)crshd Wrote: I would make a function for icons. Well I do have to say that I never put much effort into actually experimenting with dzen, maybe its just because I had a bad experience with it in the beginning with positioning. |
|||