Live data from Hacker News

WTF: A personal information dashboard for your terminal

github.com

51–60 of 121 posts

Re: WTF: A personal information dashboard for your terminal

#52

I'm not sure I would find all of this terribly useful, but it does remind me of a little addition I made to my status script - the time in UTC as well as local time. If you use a system where you are easily able to add arbitrary text to your status bar, I highly recommend this addition. If you do not use such a system, I highly recommend a change ;)

Anyone wanting to do something like you describe in the menubar should check out Hammerspoon. Brilliant stuff.

I am decidedly not a Mac person, but hammerspoon is one of my favorite pieces of software in any category.

For people who don't know, it is a service you run on a Mac that has all of Cocoa bound to Lua. You can script aaaaaaanything on your Mac in Lua. Don't like the way Mac does window management? Treat yoself! Want to control anything at all on your Mac with just keystrokes instead of endless pointy clicky? Treat yoself!

Re: WTF: A personal information dashboard for your terminal

#53

how does a beginner learn how to do all this, not how to instal but LEARN from beginnning. i am looking at this and i am like WTF is this.

This is written in Go. I'm not sure this uses cobra, but you could start easily by writing basic CLI tools using cobra[0]

[0] - https://github.com/spf13/cobra

Re: WTF: A personal information dashboard for your terminal

#57
post #7

Can't this be made more general and modular by creating a windowing system for terminals first, and then write little programs that operate in that system?

Such things existed in the pre-GUI-everywhere days: https://en.wikipedia.org/wiki/DESQview is probably the most well known example. If you are not wanting a full windowing OS (just a windowing display) then https://en.wikipedia.org/wiki/Tmux may do the job for you in unix-a-like environments, with or without https://en.wikipedia.org/wiki/Byobu_(software) . In fact I sometimes have several log monitoring windows open…

For a modern *nix equivalent of DESQview take a look at Twin: https://github.com/cosmos72/twin/

Re: WTF: A personal information dashboard for your terminal

#59
post #54

~/.wtf/... Doesn't follow XDG base directory spec.

Got a good pointer to more details? I don't know anything about that spec.

See https://specifications.freedesktop.org/basedir-spec/basedir-...

The main idea. You read $XDG_* variables, and use them if defined, and use spec defaults if not. It declutters $HOME from dot directories.

Re: WTF: A personal information dashboard for your terminal

#60

Really like it. My only criticisms are: * I'd love to be able to write my own modules for it * When a module's config is bad it just doesn't show -- no errors are produced (that I can find) so I don't know what in my config is bad.

You can write your own modules, you'll just need to fork the repo and write them in Go. There's no DSL for it. Good idea about the config. I'll create a feature issue for it.

Go uses less CPU and is less crashy, both of which are nice in a dashboard.

It also seems like more generic modules may handle the use cases you'd want a DSL for.

For instance, there's already a text module; if a similar module can listen to a FIFO or even listen on a socket, you can just throw whatever you need into it from any language that can write to a filehandle.

If it can handle ANSI escapes, most commands that can write to a terminal would work with it. So `{clear; ls --color=always} > /whatever/fifo` or `> /dev/tcp/whatever/1234` could stick to my dashboard.

Post reply on HN