clean up & formatting

This commit is contained in:
zegonix
2025-06-09 21:39:18 +02:00
parent 9bc3f37c50
commit dd43286949
4 changed files with 235 additions and 234 deletions

View File

@@ -2,7 +2,7 @@
source process-status.sh
set_reminder() {
function set_reminder {
message_reminder=$(
cat <<'EOF'
enter reminder message to display when the timer rings
@@ -20,10 +20,10 @@ EOF
notify-send "ERROR" "[atd.service] is not running"
fi
reminder="$(rofi -dmenu -theme ~/.config/rofi/themes/input-dialog-blue.rasi -mesg "${message_reminder}")"
reminder="$(fuzzel --dmenu)"
if [[ -z "${reminder}" ]]; then return 1; fi
time="$(rofi -dmenu -theme ~/.config/rofi/themes/input-dialog-blue.rasi -mesg "${message_time}")"
time="$(fuzzel --dmenu)"
if [[ -z "${time}" ]]; then return 1; fi
if ! $(echo "notify-send '${reminder}'" | at "${time}"); then

View File

@@ -13,7 +13,7 @@ select_audio_sink() {
return 1
fi
selection="$(printf "%s\n" "${names[@]//\"/}" | rofi -dmenu -i --only-match)"
selection="$(printf "%s\n" "${names[@]//\"/}" | fuzzel --dmenu)"
unset number
for n in ${!names[@]}; do