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/machines/yeren.nix | 1 + users/grfn/system/home/modules/development/readyset.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 users/grfn/system/home/modules/development/readyset.nix (limited to 'users') diff --git a/users/grfn/system/home/machines/yeren.nix b/users/grfn/system/home/machines/yeren.nix index 6107c3c635..504a382c20 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 0000000000..e9782e84f0 --- /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