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

View file

@ -214,7 +214,7 @@ bar {
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
status_command while ~/.config/sway/sway-bar.sh; do sleep 1; done
colors {
statusline #ffffff

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"