Add (again) grim/slurp for screenshot

This commit is contained in:
Evie Litherland-Smith 2023-11-22 13:57:54 +00:00
parent 048f422ee4
commit 5b306c8b32
2 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,7 @@ in ''
env = QT_QPA_PLATFORM,wayland env = QT_QPA_PLATFORM,wayland
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = MOZ_ENABLE_WAYLAND,1 env = MOZ_ENABLE_WAYLAND,1
env = GRIM_DEFAULT_DIR=${config.xdg.userDirs.pictures}/Screenshots
exec-once = hyprctl setcursor ${cursorName} ${cursorSize} exec-once = hyprctl setcursor ${cursorName} ${cursorSize}
exec-once = dbus-update-activation-environment --systemd --all exec-once = dbus-update-activation-environment --systemd --all
@ -93,6 +94,7 @@ in ''
bind = SUPER, Return, exec, alacritty bind = SUPER, Return, exec, alacritty
# Misc useful binds # Misc useful binds
bind=,Print,exec,grim -g "$(slurp)"
bind=,XF86Calculator,exec,rofi -replace -show calc bind=,XF86Calculator,exec,rofi -replace -show calc
# Sound # Sound

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { 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 ]; imports = [ ./waybar/default.nix ./rofi/default.nix ./gtk.nix ./mako.nix ];
services = { services = {
avizo.enable = true; avizo.enable = true;