rei2hu / swayblocks Goto Github PK
View Code? Open in Web Editor NEWstatus bar manager for i3 and sway written in elixir
status bar manager for i3 and sway written in elixir
Various changes to swaybar
keep breaking the program because I keep using workarounds like this.
A possible library to use is Jaxon except it doesn't seem to handle encoding. I could just write my own thing as it seems straightforward enough.
Edit: I wrote a parser in C and there seems to be a few problems with using escript and nifs together. Really the more that I think about it what I'm doing currently should be acceptable enough.
Swayblocks often crashes when two modules ran into a timeout with failed to parse i3bar json
as the visual error and cerr contains:
[23:19:24] [INFO] Timed out message recieved from ~/.config/swayblocks/scripts/wifi ["{\"separator_block_width\":\"10\",\"separator\":\"\",\"name\":\"~/.config/swayblocks/scripts/wifi\",\"instance\":0,\"full_text\":\" 10.0.0.8\",\"color\":\"#44ff44\",\"border\":\"#333333\"}", "{\"separator_block_width\":25,\"name\":\"~/.config/swayblocks/scripts/wifi\",\"instance\":1,\"full_text\":\" 46.0%\",\"color\":\"#A8FF00\",\"border\":\"#333333\"}"]
:gen_event handler Logger.Backends.Console installed in Logger terminating
** (exit) an exception was raised:
** (RuntimeError) no device registered with the name :user
(logger) lib/logger/backends/console.ex:160: Logger.Backends.Console.async_io/2
(logger) lib/logger/backends/console.ex:145: Logger.Backends.Console.log_event/5
(logger) lib/logger/backends/console.ex:49: Logger.Backends.Console.handle_event/2
(stdlib) gen_event.erl:577: :gen_event.server_update/4
(stdlib) gen_event.erl:559: :gen_event.server_notify/4
(stdlib) gen_event.erl:300: :gen_event.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
The first calls to wifi/volume take much longer after I unplug my laptop and are causing the timeouts, probably due to power saving hardware states
It would be nice to be able to select a different config file at runtime. Something like swayblocks -c ~/.config/swayblocks/other_config.exs
would be nice. I use multiple monitors, sometimes rotated 90 degrees, and being able to have a separate config for each monitor type would be fantastic.
Arch linux AUR version of swayblocks
~λ sway -v
sway version 1.4
in Russia standard decimal delimiter is comma, not period
so this
~λ printf "%.f" 57.0
bash: printf: 57.0: недопустимое число
57
gives error while this is OK
~λ printf "%.f" 57,0
57
and check
~λ cat /proc/net/wirelessInter-| sta-| Quality | Discarded packets | Missed | WE
face | tus | link level noise | nwid crypt frag retry misc | beacon | 22
wlp1s0: 0000 59. -51. -256 0 0 0 131 4888 0
replace this text with relevant logs
replace this text with actual output
I installed swayblocks using the AUR on arch linux. It loaded the blocks properly for a couple seconds then the text is replaced by [invalid i3bar json].
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.