ifgraph icon indicating copy to clipboard operation
ifgraph copied to clipboard

Cools stuff, bug ..no a feature with space config and maybe alpine install script.

Open syonfox opened this issue 2 years ago • 3 comments

First of all kudos more tools need to be this simple.

the space command when you press and hold will start cycling. This is cool. but it would be nice if you could toggle this off again.

Some ideas. Maybe have a legend. or help. maybe a fun fact and some help if any arg is passed.

alpine install


apk add make build-base
git clone https://github.com/stolk/ifgraph.git

cd ifgraph
make
./ifgraphd &
./ifgraph

EDIT: made a pull request for the systemd and initd the stuff that used to be here didn't work so removed it.

Need to test this still.

Will look into a commit to my fork. Who knows about systemd :)

happy coding.

syonfox avatar Jan 16 '23 08:01 syonfox

Thanks for the PR, I think at least the systemd version needs a different approach though.

About the SPACE functionality: it is not HOLD, it is just:

  • one press to see HOUR graph.
  • another press to see DAY graph.
  • another press to see MINUTE graph again.

It feels a little unresponsive, because of the 1s sleep. I will address that.

stolk avatar Jan 16 '23 23:01 stolk

Removed the definitely wrong config from issues and a mostly working version is in the PR... yeah I'm new to this and learning so let me know what the right way is when you have time. I noticed that the system install prevents nonroot execution. it would be nice if it didn't,].

Back to

ifgraph_dev_log_1-2023-01-16_21.25.18.webm

If I tap space it seems to work this input was (s = space, .=no space key)
....s.....s.....s......ssssssssssssssssssssssssssssssssss....................................................... Could this have to do with key-up and key-down not being different? Like I said its almost a feature :)

Note It also caused the formatting to not be cleaned on exit.

syonfox avatar Jan 17 '23 02:01 syonfox

I usually run daemons as a user process.

In Debian/Ubuntu there is a suitable user for it: daemon

Also, package install dirs in debian/ubuntu are /usr not /usr/local.

Lemme get the debian packaging in, and debian install, and then you can do other OS'es fashioned after that.

stolk avatar Jan 17 '23 03:01 stolk