diff --git a/dotfiles/config/taffybar/taffybar.rc b/dotfiles/config/taffybar/taffybar.rc index 260d0bf8..ccc22982 100644 --- a/dotfiles/config/taffybar/taffybar.rc +++ b/dotfiles/config/taffybar/taffybar.rc @@ -34,6 +34,7 @@ style "taffybar-workspace-border-active" = "taffybar-default" { bg[NORMAL] = @yellow } style "taffybar-workspace-border-visible" = "taffybar-default" { + bg[NORMAL] = @red } style "taffybar-workspace-border-empty" = "taffybar-default" { diff --git a/dotfiles/lib/bin/set_volume.sh b/dotfiles/lib/bin/set_volume.sh index 86fc937d..f3edc19e 100755 --- a/dotfiles/lib/bin/set_volume.sh +++ b/dotfiles/lib/bin/set_volume.sh @@ -2,4 +2,4 @@ pulseaudio-ctl "$@" -notify-send " " -i notification-audio-volume-high -h int:value:$(pavolume) -h string:synchronous:volume +volnoti-show "$(pavolume)" diff --git a/dotfiles/lib/bin/show_brightness.sh b/dotfiles/lib/bin/show_brightness.sh new file mode 100755 index 00000000..a10fdd91 --- /dev/null +++ b/dotfiles/lib/bin/show_brightness.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +actual="$(cat /sys/class/backlight/intel_backlight/actual_brightness)" +max="$(cat /sys/class/backlight/intel_backlight/max_brightness)" + +temp="$(( $actual * 100 ))" +percentage="$(( $temp/$max ))" + +volnoti-show "$percentage" diff --git a/dotfiles/xmonad/xmonad.hs b/dotfiles/xmonad/xmonad.hs index 3877e683..6cc33c54 100644 --- a/dotfiles/xmonad/xmonad.hs +++ b/dotfiles/xmonad/xmonad.hs @@ -740,6 +740,9 @@ addKeys conf@XConfig {modMask = modm} = , ((mod3Mask, xK_w), spawn "set_volume.sh up") , ((mod3Mask, xK_s), spawn "set_volume.sh down") + , ((0, xF86XK_MonBrightnessUp), spawn "show_brightness.sh") + , ((0, xF86XK_MonBrightnessDown), spawn "show_brightness.sh") + ] ++ -- Replace moving bindings diff --git a/tasks/shell/arch_dependencies.sh b/tasks/shell/arch_dependencies.sh index 234d6f6b..7cc8cdf7 100755 --- a/tasks/shell/arch_dependencies.sh +++ b/tasks/shell/arch_dependencies.sh @@ -29,7 +29,7 @@ LANGUAGES=( APPEARANCE=( "adobe-source-code-pro-fonts" "emojione-color-font" "fontawesome" "ttf-roboto" "compton" - "screenfetch" "noto-fonts-cjk" "adapta-gtk-theme" "numix-icon-theme-git" + "screenfetch" "noto-fonts-cjk" "adapta-gtk-theme" "numix-icon-theme-git" "volnoti" ) NVIDIA=(