backup Asahi Fedora
This commit is contained in:
12
.config/sway/sway-status
Executable file
12
.config/sway/sway-status
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Volume
|
||||
volume=$(amixer get Capture | grep -m1 % | awk '{print $5}' | sed -e 's/\[//' -e 's/\]//')
|
||||
|
||||
# Battery
|
||||
battery=$(cat /sys/class/power_supply/macsmc-battery/capacity)
|
||||
|
||||
# Date and Time
|
||||
date=$(date +'%X %a, %d %b %y')
|
||||
|
||||
echo "Vol" $volume "|" "Bat" $battery"%" "|" $date
|
||||
Reference in New Issue
Block a user