Add videocall options to popup-window selection
This commit is contained in:
parent
f2122ddb41
commit
0f6750c47f
|
@ -6,6 +6,8 @@ select_action() {
|
||||||
"Connectivity test"
|
"Connectivity test"
|
||||||
"Kill emacs"
|
"Kill emacs"
|
||||||
"Sync doom emacs"
|
"Sync doom emacs"
|
||||||
|
"Start videocall"
|
||||||
|
"Stop videocall"
|
||||||
)
|
)
|
||||||
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")
|
||||||
execute_action "$action"
|
execute_action "$action"
|
||||||
|
@ -25,7 +27,11 @@ execute_action() {
|
||||||
"Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;;
|
"Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;;
|
||||||
"Kill emacs") execute_command "pkill emacs" ;;
|
"Kill emacs") execute_command "pkill emacs" ;;
|
||||||
"Sync doom emacs") execute_command "$HOME/.emacs.d/bin/doom sync" ;;
|
"Sync doom emacs") execute_command "$HOME/.emacs.d/bin/doom sync" ;;
|
||||||
|
"Start videocall") execute_command "$script_folder/pulseaudio-mic-mute" && execute_command "$script_folder/videocall start" ;;
|
||||||
|
"Stop videocall") execute_command "$script_folder/pulseaudio-mic-mute" && execute_command "$script_folder/videocall stop" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
script_folder="$HOME/.local/share/scripts"
|
||||||
|
|
||||||
select_action "$@"
|
select_action "$@"
|
||||||
|
|
Loading…
Reference in New Issue