wayland: update hyprland, hypridle, hyprlock configs

This commit is contained in:
notohh 2025-02-21 22:08:28 -05:00
parent 1217e90491
commit e6be419ddd
Signed by: notohh
GPG key ID: BD47506D475EE86D
5 changed files with 15 additions and 11 deletions
home/wayland

View file

@ -4,9 +4,6 @@
systemPackages = with pkgs; [ systemPackages = with pkgs; [
wayland wayland
glib glib
grim
slurp
satty
wl-clipboard wl-clipboard
]; ];
sessionVariables = { sessionVariables = {

View file

@ -1,4 +1,8 @@
_: { {
lib,
pkgs,
...
}: {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";
bind = [ bind = [
@ -14,6 +18,7 @@ _: {
"$mainMod, right, movefocus, r" "$mainMod, right, movefocus, r"
"$mainMod, up, movefocus, u" "$mainMod, up, movefocus, u"
"$mainMod, down, movefocus, d" "$mainMod, down, movefocus, d"
'', Print, exec, ${lib.getExe pkgs.grim} -g "$(${lib.getExe pkgs.slurp})" - | ${lib.getExe pkgs.satty} -f - --fullscreen --output-filename ~/Pictures/screenshots/$(date '+%Y%m%d-%H:%M:%S').png''
"$mainMod, 1, workspace, 1" "$mainMod, 1, workspace, 1"
"$mainMod, 2, workspace, 2" "$mainMod, 2, workspace, 2"

View file

@ -96,8 +96,5 @@
no_donation_nag = true; no_donation_nag = true;
}; };
}; };
extraConfig = ''
bind =, Print, exec, grim -g "$(slurp)" - | satty -f - --fullscreen --output-filename ~/Pictures/screenshots/$(date '+%Y%m%d-%H:%M:%S').png
'';
}; };
} }

View file

@ -40,13 +40,17 @@ _: {
disable_loading_bar = false; disable_loading_bar = false;
hide_cursor = false; hide_cursor = false;
no_fade_in = false; no_fade_in = false;
ignore_empty_input = true;
};
animations = {
enabled = true;
}; };
input-field = [ input-field = [
{ {
monitor = "DP-1"; monitor = "DP-1";
size = "350, 50"; size = "350, 50";
outline_thickness = 2; outline_thickness = 2;
outer_color = "rgb(f7768e)"; outer_color = "rgb(f5c2e7)";
inner_color = "rgb(1a1b26)"; inner_color = "rgb(1a1b26)";
font_color = "rgb(c0caf5)"; font_color = "rgb(c0caf5)";
fail_color = "rgb(f7768e)"; fail_color = "rgb(f7768e)";
@ -69,7 +73,7 @@ _: {
{ {
monitor = "DP-1"; monitor = "DP-1";
text = '' text = ''
Hi, <i><span foreground="##f7768e">$USER</span></i> Hi, <i><span foreground="##74c7ec">$USER</span></i>
''; '';
color = "rgb(c0caf5)"; color = "rgb(c0caf5)";
position = "0, 60"; position = "0, 60";

View file

@ -2,6 +2,7 @@
pkgs, pkgs,
lib, lib,
config, config,
inputs,
... ...
}: { }: {
services.hypridle = { services.hypridle = {
@ -18,8 +19,8 @@
on-timeout = "${lib.getExe config.programs.hyprlock.package}"; on-timeout = "${lib.getExe config.programs.hyprlock.package}";
} }
{ {
timeout = 460; timeout = 450;
on-timeout = "hyprctl dispatch dpms off"; on-timeout = "${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/hyprctl dispatch dpms off";
} }
]; ];
}; };