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:
parent
878957d2f6
commit
fb36bc321b
2 changed files with 13 additions and 0 deletions
|
@ -8,6 +8,7 @@ in
|
|||
imports = [
|
||||
../platforms/linux.nix
|
||||
../modules/common.nix
|
||||
../modules/development/readyset.nix
|
||||
];
|
||||
|
||||
# for when hacking
|
||||
|
|
12
users/grfn/system/home/modules/development/readyset.nix
Normal file
12
users/grfn/system/home/modules/development/readyset.nix
Normal 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 -")
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue