dotfiles/config/polybar/scripts/system/removable_drive.sh

15 lines
228 B
Bash
Raw Permalink Normal View History

2023-02-06 17:56:36 -05:00
#! /bin/bash
# 
# You can add more drives like so default_drives="drive1\|drive2"
default_drives="nvme0n1"
devices=$(lsblk -lnd | grep -v $default_drives )
if [ "$devices" = "" ];
then
echo -n
exit
else
echo ""
fi