From e801bfc4a2e11ea2d1e23a897e9c5261916c1cbd Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 2 Jun 2021 11:26:20 +0200 Subject: [PATCH] Add videocall options to popup-window selection --- scripts/.local/share/scripts/popup-window | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/.local/share/scripts/popup-window b/scripts/.local/share/scripts/popup-window index 9eb44d0..e4ca57c 100755 --- a/scripts/.local/share/scripts/popup-window +++ b/scripts/.local/share/scripts/popup-window @@ -5,7 +5,8 @@ select_action() { "System resources usage" "Connectivity test" "Kill emacs" - "Sync doom emacs" + "Start videocall" + "Stop videocall" ) action=$(printf '%s\n' "${action_content[@]}" | rofi -no-auto-select -i "$@" -dmenu -p "Choose an action") execute_action "$action" @@ -25,7 +26,11 @@ execute_action() { "Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;; "Kill emacs") execute_command "pkill emacs" ;; "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 } +script_folder="$HOME/.local/share/scripts" + select_action "$@"