[*] Multiple new configs
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
BASH_ARGV0="kwm_bar"
|
||||
|
||||
rm -f /tmp/bar
|
||||
mkfifo /tmp/bar
|
||||
|
||||
exec 1<>/tmp/bar
|
||||
|
||||
while true; do
|
||||
|
||||
# brightness="$(($(cat /sys/class/backlight/amdgpu_bl1/brightness) * 100 / $(cat /sys/class/backlight/amdgpu_bl1/max_brightness)))"
|
||||
battery="$(cat /sys/class/power_supply/BAT0/capacity)"
|
||||
time="$(date +%R)"
|
||||
vol="$(pamixer --get-volume-human)"
|
||||
|
||||
if ! playback="$(playerctl metadata -f '🎵 {{xesam:title}} - {{xesam:artist}} | ')"; then
|
||||
playback=''
|
||||
fi
|
||||
|
||||
vol_icon='V:'
|
||||
# brightness_icon='B:'
|
||||
battery_icon='🔋'
|
||||
|
||||
echo "$playback$vol_icon $vol | $battery_icon$battery% | $time" >/tmp/bar
|
||||
|
||||
sleep 1
|
||||
done
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user