fix(home/sway): add brightness support

This commit is contained in:
genofire 2021-11-14 20:15:51 +01:00
parent d26623cc9a
commit 101fa886c8
2 changed files with 6 additions and 3 deletions

View File

@ -67,5 +67,6 @@
};
programs.firefox = {
enable = true;
# package = pkgs.firefox-devedition-bin-unwrapped;
};
}

View File

@ -273,8 +273,10 @@ in
"${modifier}+XF86AudioMute" = ''exec "ponymix -N -t source -d $(ponymix -t source list | grep source | grep -v -E '(monitor|fallback)' | sed -r 's/source\s([0-9]+):.*/\1/') toggle"'';
"XF86AudioMicMute" = ''exec "ponymix -N -t source -d $(ponymix -t source list | grep source | grep -v -E '(monitor|fallback)' | sed -r 's/source\s([0-9]+):.*/\1/') toggle"'';
"XF86MonBrightnessUp" = ''exec "sh ~/.local/bin/key_light.sh up"'';
"XF86MonBrightnessDown" = ''exec "sh ~/.local/bin/key_light.sh down"'';
"XF86MonBrightnessUp" = ''exec brightnessctl set +10% && \
notify-send -h "int:value:$(brightnessctl -m info | cut -d',' -f4)" -i display-brightness-symbolic -a Display Light -t 1000'';
"XF86MonBrightnessDown" = ''exec brightnessctl set 10%- && \
notify-send -h "int:value:$(brightnessctl -m info | cut -d',' -f4)" -i display-brightness-symbolic -a Display Light -t 1000'';
"XF86Display" = ''exec "swaymsg output eDP-1 toggle"'';
"${modifier}+p" = "exec passmenu";
@ -366,7 +368,7 @@ in
};
programs.alacritty = {
# enable = true;
enable = true;
settings = {
background_opacity = 0.95;
font.size = 8;