diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2024-08-12 09:13:48 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2024-08-12 09:13:48 +0200 |
commit | 54c7e25e17c1adf0817e65336d0bc2a399d6187f (patch) | |
tree | fc1e88276b8a8a868a046094a33b843024450ac0 | |
parent | da5a638e419312a3973e0662b0e252ca45e7b4b9 (diff) | |
download | nixos-54c7e25e17c1adf0817e65336d0bc2a399d6187f.tar nixos-54c7e25e17c1adf0817e65336d0bc2a399d6187f.tar.gz nixos-54c7e25e17c1adf0817e65336d0bc2a399d6187f.tar.bz2 nixos-54c7e25e17c1adf0817e65336d0bc2a399d6187f.tar.xz nixos-54c7e25e17c1adf0817e65336d0bc2a399d6187f.zip |
...
-rw-r--r-- | accounts/gkleen@sif/hyprland.nix | 13 | ||||
-rw-r--r-- | accounts/gkleen@sif/systemd.nix | 4 |
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 | ''; |
44 | in { | 44 | in { |
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 = { |