From 83bbe3b2d0093d382c87343d65fbffeb9057ec46 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 5 Feb 2025 20:45:47 +0100 Subject: [PATCH] Move stuff a bit, make grim only usable as a keybinding. --- modules/home-manager/hyprland.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index 27bfd57..cd50a0b 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -1,6 +1,5 @@ { config, - inputs, pkgs, lib, ... @@ -59,6 +58,7 @@ "reboot") reboot ;; esac ''; + grim = "${pkgs.grim}/bin/grim"; in { options = { crony.hyprland.enable = lib.mkEnableOption "Enable hyprland and configure it for me"; @@ -69,8 +69,6 @@ in { (writeShellScriptBin "tofi-pass" '' tofi --hide-input true --prompt-text 'Password: ' --require-match false --hidden-character '.' < /dev/null '') - grim - slurp cliphist wl-clipboard ]; @@ -373,6 +371,8 @@ in { "$mod, F1, exec, ${toggle-sound-output}/bin/toggle-sound-output" "$mod SHIFT, E, exec, ${power-menu}/bin/power-menu" + "$mod, F12, exec, ${grim} $HOME/Pictures/screenshots/$(date +'%s_grim.png')" + "$mod, V, exec, cliphist list | tofi --horizontal false --height 380 | cliphist decode | wl-copy" "$mod, j, layoutmsg, cyclenext"