From 79538cc993cf8dbdd2da77a155ec505fc76124ac Mon Sep 17 00:00:00 2001 From: "Reid \"reidlab" Date: Thu, 20 Jun 2024 21:00:18 -0700 Subject: [PATCH] finer brightness adjustment --- modules/desktop/hypridle.nix | 2 +- modules/desktop/hyprland.nix | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/desktop/hypridle.nix b/modules/desktop/hypridle.nix index 8948480..37a6c5c 100644 --- a/modules/desktop/hypridle.nix +++ b/modules/desktop/hypridle.nix @@ -32,7 +32,7 @@ in { listener = [ { timeout = 60 * 1; - on-timeout = "${lib.getExe pkgs.brightnessctl} -c backlight -s set 1%"; # dim screen, save brightness state + on-timeout = "${lib.getExe pkgs.brightnessctl} -c backlight -s set 20"; # dim screen, save brightness state on-resume = "${lib.getExe pkgs.brightnessctl} -c backlight -r"; # restore previous screen brightness state } { diff --git a/modules/desktop/hyprland.nix b/modules/desktop/hyprland.nix index 7c6ff43..30472ed 100644 --- a/modules/desktop/hyprland.nix +++ b/modules/desktop/hyprland.nix @@ -60,8 +60,8 @@ in { ", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+" ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" - ", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} -c backlight s +5%" - ", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} -c backlight s 5%-" + ", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} -c backlight s +2%" + ", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} -c backlight s 2%-" ]; bindl = [ # "bind locked" ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" @@ -76,9 +76,6 @@ in { "SUPER, Super_L, exec, ${lib.getExe pkgs.nwg-drawer}" ]; bind = let - # screenshotScript = pkgs.writeScript "screenshot" '' - # ${lib.getExe pkgs.grimblast} --freeze --notify copy area - # ''; screenshotScript = pkgs.writeScript "screenshot" '' temp_file=$(mktemp) trap 'rm -f "$temp_file"' EXIT