FollieHiyuki-dotfiles/home/.config/polybar/onedark/mount.sh
2021-02-13 19:28:59 +03:00

11 lines
172 B
Bash
Executable File

#!/bin/sh
DIRECTORY="/run/media/$USER"
if [ -d "$DIRECTORY" ]
then
[ "$(/usr/bin/ls -A "$DIRECTORY")" ] && echo "%{F#61afef}禍" || echo "禍"
else
echo "禍"
fi