From 5b306c8b3289524fcff6c4a25a2f64cf2c09cb4a Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 22 Nov 2023 13:57:54 +0000 Subject: [PATCH] Add (again) grim/slurp for screenshot --- home/hyprland/config.nix | 2 ++ home/hyprland/default.nix | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/home/hyprland/config.nix b/home/hyprland/config.nix index 695bce27..20b0b8e4 100644 --- a/home/hyprland/config.nix +++ b/home/hyprland/config.nix @@ -18,6 +18,7 @@ in '' env = QT_QPA_PLATFORM,wayland env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 env = MOZ_ENABLE_WAYLAND,1 + env = GRIM_DEFAULT_DIR=${config.xdg.userDirs.pictures}/Screenshots exec-once = hyprctl setcursor ${cursorName} ${cursorSize} exec-once = dbus-update-activation-environment --systemd --all @@ -93,6 +94,7 @@ in '' bind = SUPER, Return, exec, alacritty # Misc useful binds + bind=,Print,exec,grim -g "$(slurp)" bind=,XF86Calculator,exec,rofi -replace -show calc # Sound diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 95ee95a8..920225b6 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, ... }: { - home.packages = with pkgs; [ discord ]; + home.packages = with pkgs; [ grim slurp discord ]; imports = [ ./waybar/default.nix ./rofi/default.nix ./gtk.nix ./mako.nix ]; services = { avizo.enable = true;