Migrate scripts/ to a dedicated app
It could be managed by Nix in this repo.
The benefit is that any real language will scale better than shell scripts and it could be written to be WM-agnostic. For example, it could support both xrandr and swaymsg -t get_outputs, and be exposed as both a Haskell library for XMonad and app for the likes of Sway.
--
Some of what's needed from scripts:
- dmenu stuff: apps, bookmarks, passwords, launching browser search
- Hardware temperatures, battery percentages
- Clipboard get/set
- Wallpaper (daemon?)
- GPG key sending
"Overseer" as a nod to Fallout?
With os as the binary name. Perfect.
How can it declaratively get data from Nix? I'd like to reuse things like the path to the web browser binary without a) rewriting it and b) assuming it's in $PATH.
Note the same issue already exists with shell scripts.
If it's managed in this repo then, short of setting up a binary cache, all hosts will need to pull in GHC and build. Perhaps package it separately... though then there's dynamic linking to think about. :exploding_head: Maybe binary caching with Cachix wouldn't be too brutal?
Edit: Is this true? Nix is lazy, if it's only used in Alakazam then Tentacool should be spared.
Edit 2: Indeed not an issue given Nix's laziness.
Things are being gradually moved directly into Nix.