Commit Graph

41 Commits

Author SHA1 Message Date
32e78a24db fudging to make it work as buildable derivation
a bit too much path shenanigans going on here to be entirely happy
2022-08-14 15:05:05 +01:00
92d36e84c4 add dependencies for saturn 2022-04-26 23:01:30 +01:00
098dd8237e saturn: label width tracks image size
looks like we can get *four* columns
2022-04-26 22:56:47 +01:00
772da57476 remove padding to get three cols in 320px width
even when one of the apps is Numberstation
2022-04-26 22:56:47 +01:00
c331732ca6 saturn: word-wrap app names to get more icons in a row 2022-04-26 22:56:47 +01:00
ab32974635 remove scoped local 2022-04-26 22:56:47 +01:00
b03afc5c07 tidy includes 2022-04-26 22:56:45 +01:00
05b8cc77e8 Merge remote-tracking branch 'samueldr/feature/sorted-apps-and-all-apps' 2022-04-26 22:56:08 +01:00
51ca9bd4fc hoist fennel and lua dbus-proxy into overlay.nix
updated the shell.nix files in both the programs that use them, so
hopefully this is not too invidious for isolated development
2022-04-26 22:56:08 +01:00
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
Samuel Dionne-Riel
9991837bad saturn: Ensure columns have the same width 2022-04-26 22:56:07 +01:00
c996f99881 Merge remote-tracking branch 'samueldr/feature/rgba' 2022-04-26 22:56:05 +01:00
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
c0abf7f2e5 Merge branch 'main' of github.com:telent/slab 2022-04-26 22:55:11 +01:00
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
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
0a2959af30 review comments 2022-04-26 22:55:11 +01:00
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
550cf5b618 Merge branch 'main' of github.com:telent/slab 2022-04-26 22:55:10 +01:00
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
769f42b864 make dbus activation work for saturn 2022-04-26 22:55:10 +01:00
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
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
c871ad2550 useful-looking url 2022-04-26 22:55:10 +01:00
4de5a76890 update dbus-proxy derivation to work under nixpkgs 21.11 2022-04-26 22:55:10 +01:00
95e562b4c1 move dbus-proxy.nix 2022-04-26 22:55:10 +01:00
786d9fc68a allow only one copy of saturn to run at a time 2022-04-26 22:55:10 +01:00
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
24ff1ab62d don't show same app twice in saturn 2022-04-26 22:55:09 +01:00
5e423fb8fd saturn: change spawn behaviour
use fork() and exec() and close filehandles in child
2022-04-26 22:55:09 +01:00
11f4b123bf add saturn 2022-04-26 22:55:09 +01:00