Rename options in the recurrent-actions script

This commit is contained in:
coolneng 2022-05-11 11:23:45 +02:00
parent f51da4431d
commit eaa014154c
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ select_action() {
action_content=( action_content=(
"System resources usage" "System resources usage"
"Connectivity test" "Connectivity test"
"Sync Doom emacs" "Reload doom emacs"
"Sync mail" "Sync mail"
) )
action=$(printf '%s\n' "${action_content[@]}" | rofi -no-auto-select -i "$@" -dmenu -p "Choose an action") action=$(printf '%s\n' "${action_content[@]}" | rofi -no-auto-select -i "$@" -dmenu -p "Choose an action")
@ -23,7 +23,7 @@ execute_action() {
case "$1" in case "$1" in
"System resources usage") launch_kitty "htop" ;; "System resources usage") launch_kitty "htop" ;;
"Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;; "Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;;
"Sync doom emacs") execute_command "$HOME/.emacs.d/bin/doom sync" ;; "Reload doom emacs") execute_command "$HOME/.emacs.d/bin/doom sync" ;;
"Sync mail") execute_command "/home/coolnengs/.local/share/scripts/mail-sync -a" ;; "Sync mail") execute_command "/home/coolnengs/.local/share/scripts/mail-sync -a" ;;
esac esac
} }