Commit Graph

242 Commits (main)

Author SHA1 Message Date
Samuel Dionne-Riel 8af2a7de45 saturn: Sort apps by name
All of this done through using Lists from penlight
2022-04-26 22:56:08 +01:00
Samuel Dionne-Riel 3574f3930f saturn: Provide data-dirs as List
And use the right priority
2022-04-26 22:56:08 +01:00
Samuel Dionne-Riel 4f82010ab0 saturn: Add desktop file ID to properties 2022-04-26 22:56:08 +01:00
Samuel Dionne-Riel 168f4c5793 saturn: Add penlight as a dependency 2022-04-26 22:56:08 +01:00
Samuel Dionne-Riel 5c3644ef2e saturn: Also include DATA_HOME
> $XDG_DATA_DIRS defines the preference-ordered set of base
> directories to search for data files in addition to the
> $XDG_DATA_HOME base directory. The directories in
> $XDG_DATA_DIRS should be seperated with a colon ':'.

*in addition to the DATA_HOME base directory*.
2022-04-26 22:56:08 +01:00
Daniel Barlow 01d702ec2e Merge pull request #5 from samueldr/fix/columns-width
saturn: Ensure columns have the same width
2022-04-26 22:56:07 +01:00
Samuel Dionne-Riel 9991837bad saturn: Ensure columns have the same width 2022-04-26 22:56:07 +01:00
Daniel Barlow c996f99881 Merge remote-tracking branch 'samueldr/feature/rgba' 2022-04-26 22:56:05 +01:00
Daniel Barlow 83d9573917 Merge branch 'main' of github.com:telent/slab 2022-04-26 22:55:11 +01:00
Samuel Dionne-Riel 405f433207 saturn: RGBA and white on dark 2022-04-26 22:55:11 +01:00
Daniel Barlow c0abf7f2e5 Merge branch 'main' of github.com:telent/slab 2022-04-26 22:55:11 +01:00
Daniel Barlow 8ed99c0c7b Merge pull request #4 from samueldr/feature/icon-size
saturn: Harmonize icon size
2022-04-26 22:55:11 +01:00
Daniel Barlow 6019a9b97a add to dbus interface
- Visible property, is window on display?
 - ToggleVisible method toggles visible state on/off
2022-04-26 22:55:11 +01:00
Daniel Barlow 29a17fafff declare dbus service attributes once 2022-04-26 22:55:11 +01:00
Samuel Dionne-Riel 7999d260b6 saturn: Fix icon handling and size
- Harmonizes icon sizes
 - Fix absolute path icons handling
 - Adds a helper for managing paths
2022-04-26 22:55:11 +01:00
Daniel Barlow 0a2959af30 review comments 2022-04-26 22:55:11 +01:00
Daniel Barlow 11facddf8a Merge pull request #2 from samueldr/feature/show-again-when-running
saturn: Show current instance on re-exec
2022-04-26 22:55:11 +01:00
Samuel Dionne-Riel 38f62baa82 saturn: Show current instance on re-exec
Allows "less dbus-enthusiastic" setups to *just* re-run the saturn
executable to show it.
2022-04-26 22:55:11 +01:00
Daniel Barlow 550cf5b618 Merge branch 'main' of github.com:telent/slab 2022-04-26 22:55:10 +01:00
Daniel Barlow e822df5f17 saturn: prevent buttons from expanding vertically when few apps
On my phone there are only five apps installed, and FlowBox
stretches the buttons in weird ways unless told not to

Also delete unused local
2022-04-26 22:55:10 +01:00
Samuel Dionne-Riel 6a5f2ecb18 saturn: Provide more dbus constant names
Makes reading the code easier^W possible.
2022-04-26 22:55:10 +01:00
Daniel Barlow 769f42b864 make dbus activation work for saturn 2022-04-26 22:55:10 +01:00
Daniel Barlow c4af9e0599 Merge pull request #1 from samueldr/feature/saturn-flowbox
saturn: Use FlowBox rather than Grid
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
Samuel Dionne-Riel 900b34a721 saturn: Use FlowBox rather than Grid
This makes the app automagically more responsive!
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
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 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