about summary refs log tree commit diff
path: root/users/grfn/system/home
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
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')
-rw-r--r--users/grfn/system/home/machines/yeren.nix1
-rw-r--r--users/grfn/system/home/modules/development/readyset.nix12
2 files changed, 13 insertions, 0 deletions
diff --git a/users/grfn/system/home/machines/yeren.nix b/users/grfn/system/home/machines/yeren.nix
index 6107c3c63511..504a382c208c 100644
--- a/users/grfn/system/home/machines/yeren.nix
+++ b/users/grfn/system/home/machines/yeren.nix
@@ -8,6 +8,7 @@ in
   imports = [
     ../platforms/linux.nix
     ../modules/common.nix
+    ../modules/development/readyset.nix
   ];
 
   # for when hacking
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 -")
+  ];
+}