update plugins

This commit is contained in:
Alexander Navarro 2023-05-10 22:21:53 -04:00
parent c080f17b08
commit 195fb5d98d
13 changed files with 204 additions and 32 deletions

13
config/sway/sway-bar.sh Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Date
date=$(date "+%a %F %R")
# Battery
battery=$(cat /sys/class/power_supply/BAT*/capacity)
# Alsa master volume
volume=$(amixer get Master | grep "Right:" | cut -f 7,8 -d " ")
# Status bar
echo "Vol: $volume | Bat: ${battery}% | $date"