feat(gs/home): Add script to graphviz the clipboard

Add a script (to PATH, so I can launch it from rofi) to take whatever's
in the clipboard, pass it through `dot -Tpng`, and then open the result
with feh.

Change-Id: I1842fca3585a33d902da20dfa6101d1c6d2f2062
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3160
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
This commit is contained in:
Griffin Smith 2021-05-25 12:35:35 +02:00 committed by grfn
parent 878957d2f6
commit fb36bc321b
2 changed files with 13 additions and 0 deletions

View file

@ -8,6 +8,7 @@ in
imports = [
../platforms/linux.nix
../modules/common.nix
../modules/development/readyset.nix
];
# for when hacking

View file

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
imports = [
./rust.nix
];
home.packages = with pkgs; [
# This goes in $PATH so I can run it from rofi and parent to my WM
(writeShellScriptBin "dotclip" "xclip -out -selection clipboard | dot -Tpng | feh -")
];
}