about summary refs log tree commit diff
path: root/users/grfn/system/home/modules/development/readyset.nix
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-05-25T10·35+0200
committergrfn <grfn@gws.fyi>2021-05-25T11·19+0000
commitfb36bc321b593d4ab7ecba15d73a6eb959bddecc (patch)
tree1cec69dc62fe606fe5eb8254078626b14208204f /users/grfn/system/home/modules/development/readyset.nix
parent878957d2f69c3d484351a8497cc064eaece09269 (diff)
feat(gs/home): Add script to graphviz the clipboard r/2629
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
Diffstat (limited to 'users/grfn/system/home/modules/development/readyset.nix')
-rw-r--r--users/grfn/system/home/modules/development/readyset.nix12
1 files changed, 12 insertions, 0 deletions
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 -")
+  ];
+}