diff --git a/2configs/gui/hyprland/autostart.nix b/2configs/gui/hyprland/autostart.nix index c047713..2b8d5e5 100644 --- a/2configs/gui/hyprland/autostart.nix +++ b/2configs/gui/hyprland/autostart.nix @@ -8,4 +8,4 @@ in { enable = true; user = mainUser; }; -}; +} diff --git a/2configs/gui/hyprland/default.nix b/2configs/gui/hyprland/default.nix index 4ba8f81..a5d3aa6 100644 --- a/2configs/gui/hyprland/default.nix +++ b/2configs/gui/hyprland/default.nix @@ -3,6 +3,7 @@ let mainUser = config.krebs.build.user.name; in { imports = [ + ../base.nix ./kitty.nix ./passwords.nix ./autostart.nix @@ -16,6 +17,9 @@ in { home.packages = with pkgs; [ dolphin wofi + hyprland + hypridle + hyprlock grimblast # screenshot ]; @@ -66,11 +70,11 @@ in { listener = [ { - timeout = 900; + timeout = 10; on-timeout = "hyprlock"; } { - timeout = 1200; + timeout = 20; on-timeout = "hyprctl dispatch dpms off"; on-resume = "hyprctl dispatch dpms on"; } diff --git a/2configs/gui/hyprland/hyprland.conf b/2configs/gui/hyprland/hyprland.conf index b4a94b3..49d4520 100644 --- a/2configs/gui/hyprland/hyprland.conf +++ b/2configs/gui/hyprland/hyprland.conf @@ -45,9 +45,7 @@ $menu = wofi --show drun # Or execute your favorite apps at launch like this: # exec-once = $terminal -exec-once = nm-applet & -exec-once = waybar & -exec-once = flameshot & +exec-once = nm-applet & hypridle & waybar & blueman-applet & copyq --start-server & # exec-once = waybar & hyprpaper & firefox @@ -196,6 +194,7 @@ bind = $mainMod, V, togglefloating, bind = $mainMod, R, exec, $menu bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle +bind = $mainMod, L, exec, hyprlock # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l @@ -245,6 +244,11 @@ bindel=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ bindel=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle +# screenshot +bind = $mainMod, Print, exec, grimblast --notify --cursor save area ~/shots/$(date +'%Y-%m-%d-At-%Ih%Mm%Ss').png +bind = ,Print, exec, grimblast --notify --cursor copy area + + ############################## ### WINDOWS AND WORKSPACES ### ##############################