Commit Graph

68 Commits (2df6bd80a737b9782f1f64d419a8276bd263cd34)

Author SHA1 Message Date
Samuel Dionne-Riel 2df6bd80a7 saturn: Provide usable lua shebang
The end-result can be executed directly on my NixOS system.
2022-04-26 22:55:10 +01:00
Daniel Barlow 08dd9405e2 swayphone_saturn_show shows saturn using dbus call 2022-04-26 22:55:10 +01:00
Daniel Barlow bbba059634 add a dbus object to show/hide the launcher 2022-04-26 22:55:10 +01:00
Daniel Barlow c871ad2550 useful-looking url 2022-04-26 22:55:10 +01:00
Daniel Barlow 4de5a76890 update dbus-proxy derivation to work under nixpkgs 21.11 2022-04-26 22:55:10 +01:00
Daniel Barlow 95e562b4c1 move dbus-proxy.nix 2022-04-26 22:55:10 +01:00
Daniel Barlow 786d9fc68a allow only one copy of saturn to run at a time 2022-04-26 22:55:10 +01:00
Daniel Barlow beddfa6a35 GDK_PIXBUF_MODULE_FILE wants only one file not a list
It doesn't work with /foo/f:/bar/:/baz as I asumed it would do
2022-04-26 22:55:10 +01:00
Daniel Barlow 24ff1ab62d don't show same app twice in saturn 2022-04-26 22:55:09 +01:00
Daniel Barlow 5e423fb8fd saturn: change spawn behaviour
use fork() and exec() and close filehandles in child
2022-04-26 22:55:09 +01:00
Daniel Barlow 11f4b123bf add saturn 2022-04-26 22:55:09 +01:00
Daniel Barlow aee37eed9a make run 2022-04-26 22:27:31 +01:00
Daniel Barlow a1908de8d3 resize and show view on creation 2022-04-26 22:14:15 +01:00
Daniel Barlow 2f32fac349 merge blinkenlicht, add modeline 2022-04-26 22:13:37 +01:00
Daniel Barlow 1887b72d1c graphical wifi quality display 2022-04-26 21:25:43 +01:00
Daniel Barlow a39a752b15 print error when failing to load image 2022-04-26 21:25:43 +01:00
Daniel Barlow 2ec7bfc78a support svg icons 2022-04-26 21:25:43 +01:00
Daniel Barlow 4bab073ba9 don't spam console when reloading css 2022-04-26 21:25:43 +01:00
Daniel Barlow 2ef630f30d make it bigger, add padding on right edge 2022-04-26 21:25:43 +01:00
Daniel Barlow 280954622d whitespace and comments 2022-04-26 21:25:43 +01:00
Daniel Barlow 463c1eea03 standardise interface to metrics
call as follows:

(let [m  (metricname.new)]
  (m:read)
  (m:read)
   ...
   )
2022-04-26 21:25:43 +01:00
Daniel Barlow b6a8048c8b uplink: use route with lowest metric 2022-04-26 21:25:43 +01:00
Daniel Barlow e4f7e911b8 metric: don't hardcode battery name
bl: red background if battery is low
2022-04-26 21:25:43 +01:00
Daniel Barlow 8c34f9429e note need to support >1 default route 2022-04-26 21:25:43 +01:00
Daniel Barlow 3d5d1078c2 tidy the example layout 2022-04-26 21:25:43 +01:00
Daniel Barlow 8d8c65e5b3 add "gravity" option for bar
A bar must be full-screen-width (or height, for vertical bars) to
have an "exclusive zone", otherwise it appears on top of other windows
instead of moving them out of the way. To right-justify (or bottom-
justify) the indicators in a bar, add :gravity :end to its options

Am *probably* going to get rid of this again, in favour of adding
support for "spacers" in the bar - then the same bar could contain
both left- and right-justified indicators
2022-04-26 21:25:43 +01:00
Daniel Barlow c426bf7893 add indicator for modem status 2022-04-26 21:25:43 +01:00
Daniel Barlow 89d629bdda reload stylesheet on change 2022-04-26 21:25:42 +01:00
Daniel Barlow 229ba07b80 add "uplink" indicator
- currently shows ssid and signal strength, if wlan
- for lan, should show interface name (not tested)

plan to enhance with
- lan speed, for wired ethernet
- wwan support
2022-04-26 21:25:42 +01:00
Daniel Barlow da00b8a3a5 make netlink socket private (closed over) 2022-04-26 21:25:42 +01:00
Daniel Barlow 8943c1d652 add wlan quality and ssid 2022-04-26 21:25:42 +01:00
Daniel Barlow 7ae4284dc0 remove debug prints 2022-04-26 21:25:42 +01:00
Daniel Barlow 6b327d1f39 remove unused `find` fn 2022-04-26 21:25:42 +01:00
Daniel Barlow 6c6d7b0d18 remove commented code 2022-04-26 21:25:42 +01:00
Daniel Barlow afd2d5dff0 experimental netlink code 2022-04-26 21:25:42 +01:00
Daniel Barlow a3584f21e0 change the charging icon 2022-04-26 21:25:42 +01:00
Daniel Barlow e20e2d335f smooth the disk light a bit 2022-04-26 21:25:42 +01:00
Daniel Barlow 3c8051a84e extract non-blocking unix file input into iostream module 2022-04-26 21:25:42 +01:00
Daniel Barlow 4c63c0338d smarter poll timeout interval
use highest common factor of requested intervals. this will still
suck if we have e.g. intervals of 333 and 1000, we could probably
refine it a bit. no interval over 3s cares about millisecond precision
2022-04-26 21:25:42 +01:00
Daniel Barlow 448a0317fb indicator for disk io: less than perfect, better than nothing 2022-04-26 21:25:42 +01:00
Daniel Barlow 4ba657c98f use eventbox instead of button
Button, somehow, doesn't seem to notice css class changes
after it's rendered. EventBox has less baggage
2022-04-26 21:25:42 +01:00
Daniel Barlow 028d5920a2 add cpu state metric (/proc/state) 2022-04-26 21:25:42 +01:00
Daniel Barlow 7e81c7c5ad delete debug print 2022-04-26 21:25:42 +01:00
Daniel Barlow 4e53d1673c sync TODO 2022-04-26 21:25:41 +01:00
Daniel Barlow c587817907 rework updates to allow file input readiness as well as timers 2022-04-26 21:25:41 +01:00
Daniel Barlow 26f0f46c71 README: delete outdated example 2022-04-26 21:25:41 +01:00
Daniel Barlow ba54bd7e41 extract "system info" functions into new metric.fnl module 2022-04-26 21:25:41 +01:00
Daniel Barlow e198e8aae5 note about icon fonts 2022-04-26 21:25:41 +01:00
Daniel Barlow 2a004d08df print error message if load-styles fails 2022-04-26 21:25:41 +01:00
Daniel Barlow fcd5aee103 support user stylesheet and customisable css class names 2022-04-26 21:25:41 +01:00