dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Migrate scripts/ to a dedicated app

Open samhh opened this issue 3 years ago • 4 comments

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

samhh avatar Apr 10 '22 16:04 samhh

"Overseer" as a nod to Fallout?

samhh avatar Apr 10 '22 16:04 samhh

With os as the binary name. Perfect.

samhh avatar Apr 10 '22 16:04 samhh

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.

samhh avatar Apr 10 '22 16:04 samhh

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.

samhh avatar May 21 '22 17:05 samhh

Things are being gradually moved directly into Nix.

samhh avatar Nov 20 '22 19:11 samhh