TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

J3blocks is a Janet scripting system for i3bar and swaybar

62 pointsby amano-kenjiabout 1 year ago

6 comments

amano-kenjiabout 1 year ago
For years, I used i3pystatus, but I was frustrated by the fact that it&#x27;s not flexible or extensible.<p>I considered using i3blocks, but I didn&#x27;t like the limitations of its INI-style configuration.<p>I wanted the flexibility of a proper scripting language.<p>Thus, I created <a href="https:&#x2F;&#x2F;codeberg.org&#x2F;amano.kenji&#x2F;j3blocks" rel="nofollow">https:&#x2F;&#x2F;codeberg.org&#x2F;amano.kenji&#x2F;j3blocks</a> which comes with a few built-in modules.<p>j3blocks requires you to write a janet script. You can shoot your foot with scripting, but it is very flexible. You can easily write your own j3blocks modules after you learn j3blocks.<p><a href="https:&#x2F;&#x2F;codeberg.org&#x2F;amano.kenji&#x2F;j3blocks-extra" rel="nofollow">https:&#x2F;&#x2F;codeberg.org&#x2F;amano.kenji&#x2F;j3blocks-extra</a> has extra modules. j3blocks-extra has pipewire-node and pipewire-default-node. These modules allow you to monitor and control pipewire nodes on i3bar or swaybar.<p>The whole system is very flexible, but it took a month to polish it to the point where development is largely finished. It is now in maintenance mode.
评论 #39488992 未加载
tionisabout 1 year ago
There&#x27;s also <a href="https:&#x2F;&#x2F;barista.run&#x2F;" rel="nofollow">https:&#x2F;&#x2F;barista.run&#x2F;</a> which allows you to build a very efficient custom i3bar using a go library.
tionisabout 1 year ago
@amano-kenji, I think that&#x27;s a great use case for Janet. Didn&#x27;t expect to see the project here so soon :-)
delboniabout 1 year ago
Nice! I&#x27;ve been using babashka for doing i3blocks scripts with Clojure and is being great so far as well :)<p><a href="https:&#x2F;&#x2F;github.com&#x2F;rafaeldelboni&#x2F;dotfiles&#x2F;tree&#x2F;master&#x2F;tag-linux&#x2F;config&#x2F;i3blocks&#x2F;scripts">https:&#x2F;&#x2F;github.com&#x2F;rafaeldelboni&#x2F;dotfiles&#x2F;tree&#x2F;master&#x2F;tag-li...</a>
评论 #39496630 未加载
Areliusabout 1 year ago
So, I even use waybar (with a minimal config) and Janet looks nice. But I just can&#x27;t figure out what J3blocks is, or what I&#x27;d use it for...
hyperhopperabout 1 year ago
People should also check out xmobar for a status bar you can script in a good language
评论 #39496675 未加载