dotfiles/home/dot_config/waybar/scripts/executable_bits.sh.tmpl

21 lines
417 B
Cheetah
Raw Normal View History

2023-12-14 20:44:57 -08:00
#!/usr/bin/env bash
# https://github.com/starr-dusT/dotfiles
bits=""
# Gamemode bit
if [ "$(gamemoded -s)" != "gamemode is inactive" ]; then
2024-01-07 00:58:22 -08:00
bits+="<span color=\"#{{ .themes.gruvbox.blue0 }}\">G</span>"
2023-12-14 20:44:57 -08:00
fi
# VPN bit
if [ -f ~/.wg0 ]; then
2024-01-07 00:58:22 -08:00
bits+="<span color=\"#{{ .themes.gruvbox.purple0 }}\">V</span>"
2023-12-14 20:44:57 -08:00
fi
# Print bits if there are any
if [ "$bits" != "" ]; then
# Seperator
echo " | $bits "
fi