finer brightness adjustment
This commit is contained in:
parent
3399b05bed
commit
79538cc993
2 changed files with 3 additions and 6 deletions
|
@ -32,7 +32,7 @@ in {
|
||||||
listener = [
|
listener = [
|
||||||
{
|
{
|
||||||
timeout = 60 * 1;
|
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
|
on-resume = "${lib.getExe pkgs.brightnessctl} -c backlight -r"; # restore previous screen brightness state
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
@ -60,8 +60,8 @@ in {
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
|
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||||
|
|
||||||
", XF86MonBrightnessUp, 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 5%-"
|
", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} -c backlight s 2%-"
|
||||||
];
|
];
|
||||||
bindl = [ # "bind locked"
|
bindl = [ # "bind locked"
|
||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||||
|
@ -76,9 +76,6 @@ in {
|
||||||
"SUPER, Super_L, exec, ${lib.getExe pkgs.nwg-drawer}"
|
"SUPER, Super_L, exec, ${lib.getExe pkgs.nwg-drawer}"
|
||||||
];
|
];
|
||||||
bind = let
|
bind = let
|
||||||
# screenshotScript = pkgs.writeScript "screenshot" ''
|
|
||||||
# ${lib.getExe pkgs.grimblast} --freeze --notify copy area
|
|
||||||
# '';
|
|
||||||
screenshotScript = pkgs.writeScript "screenshot" ''
|
screenshotScript = pkgs.writeScript "screenshot" ''
|
||||||
temp_file=$(mktemp)
|
temp_file=$(mktemp)
|
||||||
trap 'rm -f "$temp_file"' EXIT
|
trap 'rm -f "$temp_file"' EXIT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue