commit 12b75e87c61a814cb7481454faf0a5a5f373f158
parent 2f18a390e3900c7ff3bf39b4c2b20b07e81db4ce
Author: Peter <peter@minskio.co.uk>
Date: Fri, 25 Sep 2026 09:25:39 +0100
Grim and slurp are installed via HM now
Also we're sorting the packages
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/common/hyprland.nix b/common/hyprland.nix
@@ -2,14 +2,14 @@
{
environment.systemPackages = with pkgs; [
- grim
+ # sort:start
hyprcursor
hypridle
hyprland
seatd
- slurp
wl-clipboard
xdg-utils
+ # sort:end
];
programs.hyprland.enable = true;
users.users.${vars.user.username}.extraGroups = ["seat" "video"];
diff --git a/home/hyprland.nix b/home/hyprland.nix
@@ -1,4 +1,4 @@
-{ lib, machine, vars, ... }:
+{ lib, machine, vars, pkgs, ... }:
let
numlockMachines = [ "atlas" "arcadia" ]; numlockEnabled = builtins.elem machine numlockMachines;
@@ -63,6 +63,8 @@ in
hl.bind("ALT + SHIFT + Tab", hl.dsp.window.cycle_next({ next = false }))
hl.bind("SUPER + SHIFT + Q", hl.dsp.window.close())
hl.bind("SUPER + E", hl.dsp.exec_cmd("alacritty -e lf"))
+ hl.bind("Print", hl.dsp.exec_cmd('${pkgs.grim}/bin/grim ~/screenshot_$(date +"%Y-%m-%d_%H-%M-%S").png'))
+ hl.bind("SHIFT + Print", hl.dsp.exec_cmd('${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" ~/screenshot_$(date +"%Y-%m-%d_%H-%M-%S").png'))
-- WM controls
hl.bind("SUPER + Space", hl.dsp.window.float({ action = "toggle" }))
hl.bind("SUPER + F", hl.dsp.window.fullscreen())