From fb36bc321b593d4ab7ecba15d73a6eb959bddecc Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Tue, 25 May 2021 12:35:35 +0200 Subject: 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 Tested-by: BuildkiteCI --- users/grfn/system/home/modules/development/readyset.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 users/grfn/system/home/modules/development/readyset.nix (limited to 'users/grfn/system/home/modules') diff --git a/users/grfn/system/home/modules/development/readyset.nix b/users/grfn/system/home/modules/development/readyset.nix new file mode 100644 index 000000000000..e9782e84f07b --- /dev/null +++ b/users/grfn/system/home/modules/development/readyset.nix @@ -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 -") + ]; +} -- cgit 1.4.1