okaydave / barr Goto Github PK
View Code? Open in Web Editor NEWBarr is a status line style generator for LemonBar
License: MIT License
Barr is a status line style generator for LemonBar
License: MIT License
However, it does print this to the terminal:
barr_i3ipc workspace -1
Somewhat related, a general "onClick" hook would be awesome to have.
For me, as an i3
user, it would be very comfortable to have an integrated system tray like in the default i3bar
. This could also be implemented as a block to customize the postition of it for example.
Not sure if this is easily fixable, but when i3 is reloaded, the i3 block will fail to update as the terminal output will be "Broken pipe" every time a draw update is triggered.
I've just installed barr and I can't get the thing to mark the current desktop neither inverting focus colors, nor setting markers. I've never coded in ruby before, so I have no idea how to check where the problem might be (I've tried reading the source code from the bspwm block, but felt a bit like chinese to me).
Don't know what info. could be useful, but I'm using Debian 8 with xfce and bspwm, the lemonbar isn't patched for xft.
The main thing keeping me from using Barr is the current lack of multiple monitor support (unless I am missing something). This can be achieved with the following formatting attribute from Lemonbar:
Sdir
Change the monitor the bar is rendered to. dir can be either
+/-
Next/previous monitor.
f/l
First/last monitor.
0-9
Nth monitor.
It would be great if you could create a PKGBUILD and submit it to the AUR.
I save my installed Arch packages to a file as backup and for an easy rebuild of my system. I do this for official and AUR packages. I think I'm not the only Arch user, that does something like this.
I'm not planing to do this for gem, npm and whatnot. Today there are just to many different "package installers".
As most of the lemaonbar/i3/bspwm users are Arch users, this would be beneficial to a lot of people I think.
Building an PKGBUILD is relatively simple.(https://wiki.archlinux.org/index.php/PKGBUILD)
Here is a little script, that does everything for you: https://github.com/anatol/gem2arch
(I would do it my self, but I figured, that you may want the AUR package under your control.)
Thank you for this gem. It is exactly what I was looking for.
There is a problem in a few of the example scripts
line #9 of time_and_date.rb should be
date = Barr::Blocks::Clock.new format: '%d of %b %Y', bgcolor: '#570B7A', fgcolor: '#FFFFFF', align: :r, icon: "\uf073"
you had %m instead of %d
The bspwm example doesn't work at all, I am not sure why. That is what I use so I am somewhat motivated to help fix it but I am not sure if my ruby is good enough
I love this project, but I think it would be very helpful to a lot of people if support for BSPWM workspaces was implemented. It shouldn't be too much different from i3, and there's references to the appropriate commands here. Thanks!
Is there any way to have an interval shorter than 1 sec? You mentioned in the documentation that the bar refreshes every second.
Hey i'm using i3wm, but the I3 module of barr isn't working that well
Is there a way i can put an instant refresh interval ? 1 second is pretty slow
Also, can I change the color of the current workspace ? One colour is not very understandable
And, also, the mpd module isn't working at, it says
"barr.rb:22:in main: uninitialized constant Barr::Blocks::MPD (NameError)"
Getting an Error when trying to click on a workspace.
sh: Line 1: barr_i3ipc: Command not found.
Tried installing ruby-i3ipc, but no changes
Is there, or will there be, a way to handle applets ? Like nm-applet for the network, or the one for the sound, or pamac-tray for arch
Clicking on named workspace indicator changes workspace to one with number only, effectively creating a new workspace without a modified name.
i changed part of the update! function to support my multimonitor setup. not sure if this would be helpful to you.
def desktops
op = []
bsp_tree["monitors"].each do |monitor|
focused = monitor["focusedDesktopId"]
op << " " + monitor["name"] + ":"
monitor["desktops"].each do |desktop|
if desktop["id"] == focused and monitor["id"] == bsp_tree["focusedMonitorId"]
op << focused_desktop(desktop)
else
op << unfocused_desktop(desktop)
end
end
end
op
end
It looks like lemonbar has some problems executing a non-.sh file or I can't make it work properly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.