Compare commits

..

2 Commits

Author SHA1 Message Date
2b60aeb15c Shortened clock, added setup automation 2025-05-31 18:02:50 +03:00
9c8b87bcc6 Fixed batteries script 2025-05-31 17:41:56 +03:00
3 changed files with 10 additions and 7 deletions

View File

@ -37,6 +37,7 @@ getcolor() {
batteries=$(acpi | rg 'Battery (\d)' -or '$1')
# echo "BATTERIES: $batteries"
text=""
for battery in $batteries; do
# echo "BATTERY $battery"
bt=$(acpi -b | grep "Battery $battery")
@ -44,10 +45,10 @@ for battery in $batteries; do
STAT=$(echo "$bt" | rg ": ([\w\s]+)," -or '$1')
ICON=$(geticon "$BAT" "$STAT")
COLOR=$(getcolor "$BAT" "$STAT")
text="$ICON $BAT"
printf "<span foreground=\"${COLOR}\">${text}</span>"
BATTEXT="$ICON $BAT%%"
text+="<span foreground=\"${COLOR}\">${BATTEXT}</span> "
done
printf "\n\n"
printf "${text:0:-1}\n\n"
# bt=$(acpi -b | grep "Battery $1")
# BAT=$(echo "$bt" | rg "(\d?\d?\d)%" -or '$1')

View File

@ -41,5 +41,5 @@ label=lang:
interval=1
[time]
command=date '+%d.%m.%Y %H:%M'
command=date '+%d.%m %H:%M'
interval=10

View File

@ -2,9 +2,11 @@
cat ~/.bashrc | grep nfrc || echo "source ~/.dotfiles/nfrc.sh" >> ~/.bashrc
sudo pacman -S fzf zoxide fd nvim stow
sudo pacman -S --needed fzf zoxide fd nvim stow ripgrep acpi jq
dirs=$(find ./ -maxdepth 1 -mindepth 1 -not -path "./.git" -not -path "./bin" -type d | sed 's:./::')
echo $dirs
for dir in $dirs; do
stow $dir --adopt
done
git checkout