very outdated but a bit less outdated than it was before

This commit is contained in:
Alexey 2026-07-04 19:34:42 +03:00
commit 7c48d260e3
11 changed files with 159 additions and 14 deletions

View file

@ -0,0 +1,16 @@
#!/usr/bin/bash
source ~/.cache/wal/colors.sh
charge=$(acpi -b | cut -d ' ' -f 4 | tr -d % | tr -d ,)
if [ $charge -lt 20 ]; then
color=$color10
elif [ $charge -lt 75 ]; then
color=$color11
else
color=$color14
fi
echo ⚡ $charge%
echo ⚡ $charge%
echo $color

13
.config/i3blocks/scripts/mpd Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/bash
source ~/.cache/wal/colors.sh
if [ "$(mpc current)" != "" ]; then
mpc -f "♪ $(mpc status "%artist% - %title% (%currenttime%/%totaltime%)" | tr -d '\n')" | sed -n 1p
mpc -f "♪ $(mpc status "%title% %currenttime%/%totaltime%" | tr -d '\n')" | sed -n 1p
echo $foreground
else
echo "♪ not playing"
echo "♪ not playing"
echo $color9
fi

7
.config/i3blocks/scripts/time Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/bash
source ~/.cache/wal/colors.sh
printf '🕛 '
date '+%Y-%m-%d %H:%M:%S'
date '+%H:%M:%S'
echo $foreground