polybar/pulseaudio & .zshrc changes

This commit is contained in:
Harri Lahtinen 2019-07-03 00:27:54 +03:00
parent 621e251ba4
commit 5e49d325e8
2 changed files with 22 additions and 8 deletions

View File

@ -26,7 +26,7 @@ monitor = ${env:MONITOR:eDP-1}
include-file = ~/.config/polybar/top-bar
modules-left = i3
modules-center = term chrome editor fm music vpn
modules-right = wlan pkg pulseaudio-rofi-output battery backlight networkmanager popup-calendar
modules-right = wlan pkg pulseaudio battery backlight networkmanager popup-calendar
;tray-position = right
;tray-padding = 2
@ -40,6 +40,21 @@ modules-left = hostname vpncheck
modules-center = cpu memory temperature
modules-right = openweather
[module/pulseaudio-control]
type = custom/script
tail = true
label=%output%
format-underline = ${colors.blue}
exec = ~/.config/Scripts/pulseaudio-control.sh --listen
click-right = exec pavucontrol
click-left = ~/.config/Scripts/pulseaudio-control.sh --togmute
click-middle = ~/.config/Scripts/pulseaudio-control.sh --change
scroll-up = ~/.config/Scripts/pulseaudio-control.sh --up
scroll-down = ~/.config/Scripts/pulseaudio-control.sh --down
label-padding = 2
label-foreground = ${colors.foreground}
[module/pulseaudio-rofi-output]
type = custom/script
exec = ~/.config/Scripts/pulseaudio-rofi.sh --output_volume_listener

13
.zshrc
View File

@ -10,14 +10,13 @@
#------------------------------
# Source config files
#------------------------------
for file in ${ZDOTDIR}/{.zaliases,.zshenv}; do
. $file || { print "$file: cannot source file" && setopt warncreateglobal }
done
if [ -r $HOME/.zaliases ] ; then
source $HOME/.zaliases
fi
# Host specific config
for file in ${ZDOTDIR}/hosts/${HOST}/{.zshenv,.zshrc,.zaliases}; do
[[ -r $file ]] && . $file
done
if [ -r $HOME/.zshenv ] ; then
source $HOME/.zshenv
fi
ZSH_THEME="spaceship"