From 3f7df297935b05adbeab16acc0181d31c5cc6ee8 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Sat, 21 Jun 2025 07:53:48 +0200 Subject: [PATCH] wildfire: 282 current 2025-06-21 07:53:42 25.05.20250617.36ab78d 6.15.2 * screenshot --- modules/common.nix | 6 ++++-- modules/desktops/hyprland-desktop.nix | 1 + modules/home/hyprland.nix | 17 +++++++++-------- modules/programs.nix | 3 +++ 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/modules/common.nix b/modules/common.nix index 0c77cf6..21877c3 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -183,11 +183,13 @@ ]; # ================================ - # BROWSER OPTIMIZATIONS + # ENVIRONMENT VARIABLES # ================================ - # Improve touchscreen and scrolling support in Firefox environment.sessionVariables = { + # Improve touchscreen and scrolling support in Firefox MOZ_USE_XINPUT2 = "1"; + # Screenshot directory for Hyprshot + HYPRSHOT_DIR = "$HOME/Nextcloud/Home-sync/Pictures/Screenshots"; }; # ================================ diff --git a/modules/desktops/hyprland-desktop.nix b/modules/desktops/hyprland-desktop.nix index 51a61ed..8a663a4 100644 --- a/modules/desktops/hyprland-desktop.nix +++ b/modules/desktops/hyprland-desktop.nix @@ -116,6 +116,7 @@ # ---- SCREENSHOT & RECORDING ---- grim # Screenshot tool for Wayland slurp # Screen area selection for screenshots + hyprshot # Screenshot tool for Hyprland swappy # Screenshot editing and annotation wf-recorder # Screen recording for Wayland diff --git a/modules/home/hyprland.nix b/modules/home/hyprland.nix index 5e54b35..c858e6f 100644 --- a/modules/home/hyprland.nix +++ b/modules/home/hyprland.nix @@ -84,15 +84,16 @@ in { # Bindings bind = [ - "$mod, RETURN, exec, $terminal" - "$mod, C, killactive" - "$mod, E, exec, $filemanager" - "$mod, SPACE, exec, $menu" - "$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy" - ", Print, exec, grimblast copy area" - "$mod, F, togglefloating" + "$mod, RETURN, exec, $terminal" # Open terminal + "$mod, C, killactive" # Kill active window + "$mod, E, exec, $filemanager" # Open file manager + "$mod, SPACE, exec, $menu" # Show menu (rofi) + "$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy" # Show Clipboard history + ", PRINT, exec, hyprshot -m region" # Screenshot region + "$mod, PRINT, exec, hyprshot -m window" # Screenshot window + "$mod, F, togglefloating" # Make active window floating "$mod, J, togglesplit, " # dwindle - "$mod, L, exec, hyprlock" + "$mod, L, exec, hyprlock" # Lock screen # Move focus with mainMod + arrow keys "$mod, left, movefocus, l" diff --git a/modules/programs.nix b/modules/programs.nix index 5254aa4..fede67b 100644 --- a/modules/programs.nix +++ b/modules/programs.nix @@ -14,6 +14,9 @@ in { # Common packages for ALL systems environment.systemPackages = with pkgs; [ + # misc + xdg-user-dirs + # networking wget whois