summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-08-12 09:13:48 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-08-12 09:13:48 +0200
commit54c7e25e17c1adf0817e65336d0bc2a399d6187f (patch)
treefc1e88276b8a8a868a046094a33b843024450ac0 /accounts/gkleen@sif
parentda5a638e419312a3973e0662b0e252ca45e7b4b9 (diff)
downloadnixos-54c7e25e17c1adf0817e65336d0bc2a399d6187f.tar
nixos-54c7e25e17c1adf0817e65336d0bc2a399d6187f.tar.gz
nixos-54c7e25e17c1adf0817e65336d0bc2a399d6187f.tar.bz2
nixos-54c7e25e17c1adf0817e65336d0bc2a399d6187f.tar.xz
nixos-54c7e25e17c1adf0817e65336d0bc2a399d6187f.zip
...
Diffstat (limited to 'accounts/gkleen@sif')
-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 = {