lordrusk / gocaudices Goto Github PK
View Code? Open in Web Editor NEWGocaudices is a dwmblocks alternative written in GO in less than 100 SLOC using xgb.
License: Other
Gocaudices is a dwmblocks alternative written in GO in less than 100 SLOC using xgb.
License: Other
Although the standard dwm patch for clickable status requires the use of BSD user signals, would it be worth programming an alternate interface and a custom dwm patch which uses some other RPC mechanism. For instance, a simple named pipe would do. We could have dwm write the index of the block into the FIFO. Then, all gocaudices has to do is have a goroutine waiting for the data (FIFOs are buffered) and send a signal over a channel when data is recieved. This would be much cleaner than all the cgo stuff you had to do for signals.
The downside of this is, obviously, that you can't use the stock dwm clickablestatus patch, but I think this could be well worth the cost of a separate patch to remove all the C signal handling.
I'll do some more research into named pipes and, if you want, start a draft PR.
By default, the code is trimming space characters in the blocks. I've seen the function barBytesArr[b.pos] = bytes.TrimSpace(outputBytes)
in line 37. However I don't know how to disable this "feature", and would like to separate the blocks using space characters.
Thanks for the software.
I don't know if I am confused with the readme or a problem with the script or my system,no matter running this from any veriation of .profile,autostart.sh patch for dwm with our without tsp with all of the above*
but as soon as i login and run it by myself through the terminal everythin's fine,
Just in case I also checked if I have multiple versions installed but that ain't it,im confused at this point
tsp:(helps "stabilize"baddly setup startups of programs,or thats what I have noticed in the past)
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.