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
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			265 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			265 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { 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 -")
 | |
|   ];
 | |
| }
 |