Add Restart Waybar to recurrent-actions

This commit is contained in:
coolneng 2022-06-13 10:27:13 +02:00
parent 0905401dac
commit b35d5d87fc
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ select_action() {
"Connectivity test"
"Reload doom emacs"
"Sync mail"
"Restart Waybar"
)
action=$(printf '%s\n' "${action_content[@]}" | rofi -no-auto-select -i "$@" -dmenu -p "Choose an action")
execute_action "$action"
@ -24,7 +25,8 @@ execute_action() {
"System resources usage") launch_kitty "htop" ;;
"Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;;
"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/coolneng/.local/share/scripts/mail-sync -a" ;;
"Restart Waybar") execute_command "pkill waybar; waybar &" ;;
esac
}