From f52d5c0c6e43e1f230a5d02400866166c1b0abea Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 2 Mar 2017 11:20:38 -0800 Subject: [PATCH 1/3] [taffybar] Tweak colors --- dotfiles/config/taffybar/taffybar.rc | 1 - 1 file changed, 1 deletion(-) diff --git a/dotfiles/config/taffybar/taffybar.rc b/dotfiles/config/taffybar/taffybar.rc index e4bfbd13..a5d55ddf 100644 --- a/dotfiles/config/taffybar/taffybar.rc +++ b/dotfiles/config/taffybar/taffybar.rc @@ -38,7 +38,6 @@ style "taffybar-workspace-contents-active" = "taffybar-default" { } style "taffybar-workspace-border-visible" = "taffybar-default" { - bg[NORMAL] = @red fg[NORMAL] = @black } style "taffybar-workspace-border-empty" = "taffybar-default" { From 190c2852e525b1fc87d8c921e99d2cd5fb1fbd4d Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 2 Mar 2017 14:46:24 -0800 Subject: [PATCH 2/3] [Linux] Add volnoti for volume control --- dotfiles/lib/bin/set_volume.sh | 2 +- tasks/shell/arch_dependencies.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/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=( From 95dc5cd7772487f13134fe25876c1a2cd60dffc4 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 2 Mar 2017 15:29:38 -0800 Subject: [PATCH 3/3] [XMonad] Show current brightness when adjusting with volnoti --- dotfiles/lib/bin/show_brightness.sh | 9 +++++++++ dotfiles/xmonad/xmonad.hs | 3 +++ 2 files changed, 12 insertions(+) create mode 100755 dotfiles/lib/bin/show_brightness.sh 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