summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accounts/gkleen@sif/hyprland.nix13
-rw-r--r--accounts/gkleen@sif/systemd.nix4
2 files changed, 17 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/hyprland.nix b/accounts/gkleen@sif/hyprland.nix
index 4e4eb091..06d146a0 100644
--- a/accounts/gkleen@sif/hyprland.nix
+++ b/accounts/gkleen@sif/hyprland.nix
@@ -203,6 +203,19 @@
203 grim -g "$(slurp -b 00000080 -c FFFFFFFF -s 00000000 -w 1)" "$outFile" 203 grim -g "$(slurp -b 00000080 -c FFFFFFFF -s 00000000 -w 1)" "$outFile"
204 wl-copy --type image/png <"$outFile" 204 wl-copy --type image/png <"$outFile"
205 ''}" 205 ''}"
206 "SHIFT, Print, exec, ${pkgs.writeShellScript "screenshot" ''
207 export PATH="${lib.makeBinPath (with pkgs; [ grim jq wl-clipboard-rs coreutils ])}:$PATH"
208
209 outFile="$HOME/screenshots/$(date +"%Y-%m-%dT%H:%M:%S").png"
210 grim -o "$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name')" "$outFile"
211 wl-copy --type image/png <"$outFile"
212 ''}"
213 "CTRL SHIFT, Print, exec, ${pkgs.runCommand "picker" {
214 buildInputs = [ pkgs.makeWrapper ];
215 } ''
216 makeWrapper ${lib.getExe pkgs.hyprpicker} $out \
217 --prefix PATH : ${lib.makeBinPath [pkgs.wl-clipboard-rs]}
218 ''} -a"
206 219
207 "$mainMod CTRL, return, togglespecialworkspace, term" 220 "$mainMod CTRL, return, togglespecialworkspace, term"
208 "$mainMod CTRL, e, togglespecialworkspace, edit" 221 "$mainMod CTRL, e, togglespecialworkspace, edit"
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix
index 1397ca62..94dacc58 100644
--- a/accounts/gkleen@sif/systemd.nix
+++ b/accounts/gkleen@sif/systemd.nix
@@ -42,6 +42,10 @@ let
42 wait "''${pid}" "''${newpid}" 42 wait "''${pid}" "''${newpid}"
43 ''; 43 '';
44in { 44in {
45 tmpfiles.rules = [
46 e /home/gkleen/screenshots - - - 365d -
47 ];
48
45 services = { 49 services = {
46 sync-keepass = { 50 sync-keepass = {
47 Service = { 51 Service = {