Compare commits
2 Commits
d66332ed2a
...
master
Author | SHA1 | Date | |
---|---|---|---|
2b60aeb15c | |||
9c8b87bcc6 |
@ -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')
|
||||
|
@ -41,5 +41,5 @@ label=lang:
|
||||
interval=1
|
||||
|
||||
[time]
|
||||
command=date '+%d.%m.%Y %H:%M'
|
||||
command=date '+%d.%m %H:%M'
|
||||
interval=10
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user