Improved polybar config

main
Guus van Meerveld 2 years ago
parent 79af7c4143
commit 6b9446033e
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -1,33 +0,0 @@
[module/spotify]
type = custom/script
tail = true
label-font = 3
format-prefix = 
format = <label>
exec = ~/.config/polybar/scripts/scroll_spotify_status.sh
[module/spotify-prev]
type = custom/script
exec = echo 
format = <label>
click-left = playerctl previous -p spotify
[module/spotify-play-pause]
type = custom/script
exec = echo 
; hook-1 = echo 
; initial = 1
format = <label>
click-left = playerctl play-pause -p spotify
[module/spotify-next]
type = custom/script
exec = echo 
format = <label>
click-left = playerctl next -p spotify

@ -26,7 +26,7 @@ ramp-capacity-10 = 
[module/title]
type = internal/xwindow
label-maxlen = 50
[module/temperature]
type = internal/temperature
@ -77,7 +77,7 @@ label-disconnected =
[module/phone-battery]
type = custom/script
exec = echo " $(mconnectctl show-battery /org/mconnect/device/0 | head -1 | awk '{print $2}')%"
exec = echo " $(mconnectctl show-battery /org/mconnect/device/1 | head -1 | awk '{print $2}')%"
exec-if = ~/.config/polybar/phone-is-connected.sh

@ -1,6 +1,6 @@
#!/bin/bash
connected="$(mconnectctl show-device /org/mconnect/device/0 | sed -n 9,9p | awk '{print $2}')"
connected="$(mconnectctl show-device /org/mconnect/device/1 | sed -n 9,9p | awk '{print $2}')"
if [[ $connected == "false" ]]; then
exit 1