backup Asahi Fedora

This commit is contained in:
han
2024-12-16 11:39:11 +07:00
parent 7a6c5e4995
commit 0f1f51cc16
7 changed files with 272 additions and 0 deletions

12
.config/sway/sway-status Executable file
View 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