From bae785c226b724252d25f12c94f3b0e8fe7340c7 Mon Sep 17 00:00:00 2001 From: chris bell Date: Sat, 3 Oct 2026 13:04:01 -0500 Subject: [PATCH] adding screenscreenshots --- modules/home-manager/sxhkd.nix | 7 +++++++ modules/nixos/common.nix | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/sxhkd.nix b/modules/home-manager/sxhkd.nix index d0b30ed..22e6549 100644 --- a/modules/home-manager/sxhkd.nix +++ b/modules/home-manager/sxhkd.nix @@ -39,6 +39,13 @@ bspc node -t "~fullscreen" super + shift + f bspc node -t "~floating" + + # screenshots + Print + scrot 'screenshot_%Y%m%d_%H%M%S.png' -e 'mkdir -p ~/screenshots && mv $f ~/screenshots && xclip -selection clipboard -t image/png -i ~/screenshots/`ls -1 -t ~/screenshots | head -1`' + + super + shift + s + scrot -s 'screenshot_%Y%m%d_%H%M%S.png' -e 'mkdir -p ~/screenshots && mv $f ~/screenshots && xclip -selection clipboard -t image/png -i ~/screenshots/`ls -1 -t ~/screenshots | head -1`' ''; home.activation.reloadSxhkd = lib.hm.dag.entryAfter [ "linkGeneration" ] '' diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index 3c874a4..4723b8d 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix @@ -47,6 +47,6 @@ services.openssh.enable = true; environment.systemPackages = with pkgs; [ - vim wget git helix nixd nixfmt btop fastfetch lazygit file disktui busybox nmap screen + vim wget git helix nixd nixfmt btop fastfetch lazygit file disktui busybox nmap screen scrot xclip ]; } \ No newline at end of file