avizo + kbd backlight
This commit is contained in:
@@ -61,12 +61,19 @@ in
|
|||||||
keybinds = {
|
keybinds = {
|
||||||
bind = [
|
bind = [
|
||||||
"$mod, A, exec, chromium --app=\"https://music.apple.com\""
|
"$mod, A, exec, chromium --app=\"https://music.apple.com\""
|
||||||
|
|
||||||
|
"SHIFT, XF86MonBrightnessUp, exec, lightctl -D kbd_backlight up"
|
||||||
|
"SHIFT, XF86MonBrightnessDown, exec, lightctl -D kbd_backlight down"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultApps = {
|
defaultApps = {
|
||||||
browser = pkgs.firefox;
|
browser = pkgs.firefox;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
exec-once = brightnessctl -d kbd_backlight s 50%
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
btop = enabled;
|
btop = enabled;
|
||||||
|
|||||||
20
modules/home/programs/hyprland/avizo.nix
Normal file
20
modules/home/programs/hyprland/avizo.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{ config, namespace, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.${namespace}.programs.hyprland;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.avizo = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
default = {
|
||||||
|
time = 1.0;
|
||||||
|
y-offset = 0.5;
|
||||||
|
fade-in = 0.1;
|
||||||
|
fade-out = 0.2;
|
||||||
|
padding = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -12,6 +12,7 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./avizo.nix
|
||||||
./options.nix
|
./options.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -419,23 +420,20 @@ in
|
|||||||
++ cfg.keybinds.bindm;
|
++ cfg.keybinds.bindm;
|
||||||
|
|
||||||
bindel = [
|
bindel = [
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
|
", XF86AudioRaiseVolume, exec, volumectl -u up"
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
", XF86AudioLowerVolume, exec, volumectl -u down"
|
||||||
]
|
]
|
||||||
++ cfg.keybinds.bindel;
|
++ cfg.keybinds.bindel;
|
||||||
|
|
||||||
bindl = [
|
bindl = [
|
||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
", XF86AudioMute, exec, volumectl toggle-mute"
|
||||||
", XF86AudioPlay, exec, playerctl play-pause"
|
", XF86AudioPlay, exec, playerctl play-pause"
|
||||||
", XF86AudioPrev, exec, playerctl previous"
|
", XF86AudioPrev, exec, playerctl previous"
|
||||||
", XF86AudioNext, exec, playerctl next"
|
", XF86AudioNext, exec, playerctl next"
|
||||||
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
", XF86AudioMicMute, exec, volumectl -m toggle-mute"
|
||||||
|
|
||||||
", XF86MonBrightnessUp, exec, brightnessctl set +5%"
|
", XF86MonBrightnessUp, exec, lightctl up"
|
||||||
", XF86MonBrightnessDown, exec, brightnessctl set 5%-"
|
", XF86MonBrightnessDown, exec, lightctl down"
|
||||||
|
|
||||||
"$mod, XF86MonBrightnessUp, exec, brightnessctl -d kbd_backlight set +10%"
|
|
||||||
"$mod, XF86MonBrightnessDown, exec, brightnessctl -d kbd_backlight set 10%-"
|
|
||||||
]
|
]
|
||||||
++ cfg.keybinds.bindl;
|
++ cfg.keybinds.bindl;
|
||||||
|
|
||||||
|
|||||||
@@ -117,7 +117,6 @@
|
|||||||
cabextract
|
cabextract
|
||||||
erofs-utils
|
erofs-utils
|
||||||
fex
|
fex
|
||||||
light
|
|
||||||
micro
|
micro
|
||||||
muvm
|
muvm
|
||||||
squashfuse
|
squashfuse
|
||||||
|
|||||||
Reference in New Issue
Block a user