screenshot

This commit is contained in:
2026-08-04 14:59:21 +09:00
parent 28a46d9990
commit 29c4815b88
10 changed files with 81 additions and 63 deletions
+3 -7
View File
@@ -1,7 +1,5 @@
{ lib, pkgs, ... }:
let
screenshot = import ./screenshot.nix { inherit pkgs; };
systemctl = lib.getExe' pkgs.systemd "systemctl";
keybind = key: actionAttrs: {
@@ -62,8 +60,6 @@ let
};
in
{
home.packages = [ screenshot ];
wayland.windowManager.labwc = {
enable = true;
# NixOS owns the package so Home Manager only generates the user config.
@@ -117,9 +113,9 @@ in
(snapToEdge "W-C-Up" "up")
(snapToEdge "W-C-Down" "down")
(confirmAction "W-S-e" "Exit labwc?" "Exit")
(execute "Print" "labwc-screenshot region")
(execute "C-Print" "labwc-screenshot output")
(execute "A-Print" "labwc-screenshot all")
(execute "Print" "screenshot region")
(execute "C-Print" "screenshot output")
(execute "A-Print" "screenshot all")
# spawn applications (sync with niri modules/applications/niri/home.nix)
(execute "W-t" "ghostty")