1
Loading...

Polybar: Update A Module When Told To Update (Polybar-Msg)

Vote
14 14 views
1y Dec 27, 2019
G

One of the easiest pieces of optimisation to be made to your Polybar is to switch some of your interval based modules over to being modules which update when told to update. In i3blocks this was done through signals but within Polybar this is done through polybar-msg and ipc. Most of the module definition is identical to when defining regular modules including things such as the formatting but the main difference comes when defining how a module should be updated. This could be used for things such as your volume control which will only update when you change your volume or a list of the number of package updates available which updates whenever you query for new updates.

? Subscribe and ding the bell for more videos!
? Leave a like if you got something out of this video!
✍ Comment some video feedback or what you want to see next time!

==========Resources==========
Polybar IPC:
https://github.com/polybar/polybar/wiki/Module:-ipc

Polybar Inter Process Messaging:
https://github.com/polybar/polybar/wiki/Inter-process-messaging

==========Support The Channel==========
Patreon:
https://www.patreon.com/brodierobertson

Paypal:
paypal.me/BrodieRobertsonVideo

BTC Wallet Address:
1Aokiv3pFQXUEmh2LbzZQAwxMvq6bpT2UN

ETH Wallet Address:
0x80451867c86bdf08c3888d407c1e3fcb6add61ed

LBC Wallet Address:
bLRN9fm17sCexKfgbYqmMj5xskZF2ogpEh

==========My Links==========
LBRY Referral:
https://api.lbry.com/user/refer?r=3jiXsRmYEV9vZEtETdEFzibFzWuwLhJc

? LBRY:
lbry://@BrodieRobertson#5

Discord:
https://discord.gg/PkMRVn9

? Twitter:
https://twitter.com/BrodieOnYoutube

? Mastodon:
https://mastodon.social/@BrodieOnYoutube

?️ GitHub:
https://github.com/BrodieRobertson

==========Credits==========
? Opening music
Full Power by ZAYFALL https://soundcloud.com/zayfallmusic
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/_full-power
Music promoted by Audio Library https://youtu.be/vWuGCATLwxI

? Ending music
Music from https://filmmusic.io
"Basic Implosion" by Kevin MacLeod (https://incompetech.com)
License: CC BY (http://creativecommons.org/licenses/by/4.0/)

About Brodie Robertson

For all general enquiries feel free to contact me through any social media service listed below, If you'd like to longer form something longer form like fan mail or you have a video suggestion, feel free to send me an email.


0 Comments

Markdown is supported.