nixers
My panel scripts - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Desktop Customization, Efficiency, and Aesthetics (https://nixers.net/Forum-Desktop-Customization-Efficiency-and-Aesthetics)
+--- Forum: Desktop Customization & Workflow (https://nixers.net/Forum-Desktop-Customization-Workflow)
+--- Thread: My panel scripts (/Thread-My-panel-scripts)


My panel scripts - neeasade - 03-12-2020

This started as a reply in the other thread [1] but I quickly realized it was getting link-dense, so I copied it over here. This is a share of the scripts that drive my i3blocks -> lemonbar experience.

Here's what my pipeline looks like[2] (form json dumps into plaintext) and my current i3blocks config[3]. It might look a little weird because it is generated. All of the values in that config end up as environment variables for panel sections (which I call "lemons"). And here's a link to the "tags" lemon [4], using a lemonbar helper[5] which gets passed to season[6] to style the separate blocks (this means the lemons work as standalone scripts as well as panel blocks).

The result of all these shenanigans is I can make fun panel-global styling decisions and see things quickly.

edit: to elaborate on the role of i3blocks: it gives me separate update timers for my panel sections, the ability to poll, and the ability to update only one block in response to a signal. Also I forgot to link it[7]

[1] https://nixers.net/Thread-How-To-Refresh-your-status-bar-in-response-to-a-hotkey
[2] https://github.com/neeasade/dotfiles/blob/6a36de10279c680022b59b721747261e4c8c39c4/wm/.wm/panel/lemonade#L30
[3] https://0x0.st/i7gU.txt
[4] https://github.com/neeasade/dotfiles/blob/master/wm/.wm/panel/lemons/tags#L118
[5] https://github.com/neeasade/dotfiles/blob/master/wm/.wm/panel/tools/bs#L4
[6] https://github.com/neeasade/dotfiles/blob/6a36de10279c680022b59b721747261e4c8c39c4/wm/.wm/panel/tools/season#L61
[7] https://github.com/vivien/i3blocks


RE: My panel scripts - jkl - 03-12-2020

Back when I used dwm, I added my battery and WiFi status to my status bar.
If anyone cares:
https://code.rosaelefanten.org/dotfiles/dir?ci=tip&name=dwm


RE: My panel scripts - pfr - 04-12-2020

(03-12-2020, 11:54 AM)neeasade Wrote: my i3blocks -> lemonbar experience.

Excellent, thanks for sharing! Got a screenshot of the finished product?
EDIT: found some on your website. Looks good!


RE: My panel scripts - neeasade - 04-12-2020

Sure -- These scrots are all with this panel setup:

https://i.redd.it/0ehmvgi3huw51.png
https://notes.neeasade.net/assets/img/desktops/full/2019-11-2.png
https://notes.neeasade.net/assets/img/desktops/full/2019-12-11.png
https://notes.neeasade.net/assets/img/desktops/full/2020-04-26.png
https://notes.neeasade.net/assets/img/desktops/full/2020-07-12.png


RE: My panel scripts - pfr - 04-12-2020

Man, what happened to you between 2017-2018.. you went from dark to light color schemes. They look lovely, but my eyes could not handle it o_O


RE: My panel scripts - neeasade - 04-12-2020

:D I guess at some point the switch just flipped.

Actually, I think that's when I started trying to make my own schemes more, and I found it easier to reason about light colorschemes at the time.


RE: My panel scripts - pfr - 06-12-2020

(04-12-2020, 12:30 PM)neeasade Wrote: I guess at some point the switch just flipped.

The light switch ? >_<