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; [
wayland
glib
grim
slurp
satty
wl-clipboard
];
sessionVariables = {

View file

@ -1,4 +1,8 @@
_: {
{
lib,
pkgs,
...
}: {
wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER";
bind = [
@ -14,6 +18,7 @@ _: {
"$mainMod, right, movefocus, r"
"$mainMod, up, movefocus, u"
"$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, 2, workspace, 2"

View file

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

View file

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