diff --git a/polybar/.config/polybar/battery.sh b/polybar/.config/polybar/battery.sh deleted file mode 100755 index 8c8bbf3..0000000 --- a/polybar/.config/polybar/battery.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -color8="#88C0D0" - -icon(){ - printf "%s\\n" "%{F${color8}}${1}%{F}" -} - -icon2() { - printf "%s\\n" "%{F${color11:-#F0F0F0}}${1}%{F}" -} - -status=$(acpiconf -i 0 | grep State | cut -c 10-) -capacity=$(acpiconf -i 0 | grep % | cut -f2 | cut -c -4 | sed s/%//) - -if [ "$status" == "charging" ]; then - printf "%s\\n" "$(icon "") ${capacity}%" -elif [ "$status" == "high" ]; then - printf "%s\\n" "$(icon "") ${capacity}%" -elif (("$capacity" <= "20")); then - printf "%s\\n" "$(icon2 "") ${capacity}%" -elif (("$capacity" <= "60")); then - printf "%s\\n" "$(icon "") ${capacity}%" -elif (("$capacity" <= "100")); then - printf "%s\\n" "$(icon "") ${capacity}%" -fi diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index e3136ad..d5f2ca8 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -24,7 +24,7 @@ font-1 = Siji:size=10;0 modules-left = workspaces modules-center = date -modules-right = mpd wifi vol bat +modules-right = mpd network alsa battery [module/title] type = internal/xwindow @@ -40,7 +40,7 @@ format-foreground = ${colors.foreground-alt} [module/mpd] type = internal/mpd -host = /home/coolneng/.mpd/socket +host = /home/coolneng/.config/mpd/socket format-online = format-offline = @@ -55,30 +55,10 @@ interval = 2 [module/date] type = internal/date - -; Seconds to sleep between updates interval = 1.0 - -; See "man date" for details on how to format the date string -; NOTE: if you want to use syntax tags here you need to use %%{...} date = %a %d %b - -; Optional time format time = %H:%M - -; if `date-alt` or `time-alt` is defined, clicking -; the module will toggle between formats -;date-alt = %A, %d %B %Y -;time-alt = %H:%M:%S - -; Available tags: -;