Muh dotfiles

This commit is contained in:
2025-05-10 10:18:28 +03:00
commit 0f4558597e
84 changed files with 4306 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#!/usr/bin/bash
TEXT=$(date +'%-d %a %R')
ALT=$(date +'%a/%b %-d.%m.%Y %R')
echo '{"text": "'$TEXT'", "alt": "'$ALT'"}'

View File

@ -0,0 +1,12 @@
#!/usr/bin/bash
STATE=$(pactl get-source-mute @DEFAULT_SOURCE@)
NAME=$(pactl get-default-source | grep -Po '(?<=\.).*?(?=[_-]\d)')
VOL=$(pactl get-source-volume @DEFAULT_SOURCE@ | grep -Po '\d*(?=%)' | head -n1)
ICON='󱦊'; CLASS='unknown'
case $STATE in
"Mute: yes") ICON='󰍭'; CLASS='muted';;
"Mute: no") ICON='󰍬'; CLASS='unmuted';;
esac
echo '{"text": "'$ICON'", "alt": "'$ICON $VOL%'", "tooltip": "'${NAME//[-_]/ }'", "class": "'$CLASS'"}'

View File

@ -0,0 +1,4 @@
#!/usr/bin/bash
ICONS=(󱘖 )
STATE=$(cat /sys/class/power_supply/AC/online)
echo ${ICONS[$STATE]}

View File

@ -0,0 +1,7 @@
#!/usr/bin/bash
VAR=$(pidof wl-screenrec | wc -w)
if [ $VAR = 0 ]; then
echo '-'
else
echo "󰑋 $VAR"
fi