dotfiles/dot_config/conky/executable_start.sh
2024-01-15 01:49:06 +09:00

13 lines
280 B
Bash

#!/bin/bash
pkill conky
widgetsdir="$XDG_CONFIG_HOME/conky/widgets"
if [ -d "$widgetsdir" ]; then
for widget in $widgetsdir/*; do
filename=$(echo $widget | sed "s;$widgetsdir/;;")
[[ $filename =~ ^_.* ]] && continue
conky -q -c "$widget"
done
fi