From f51da4431d92480093cfd4cd4ad910d299e08eff Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 11 May 2022 11:22:05 +0200 Subject: [PATCH] Remove videocall script --- .../.local/share/scripts/recurrent-actions | 8 +---- scripts/.local/share/scripts/videocall | 30 ------------------- 2 files changed, 1 insertion(+), 37 deletions(-) delete mode 100755 scripts/.local/share/scripts/videocall diff --git a/scripts/.local/share/scripts/recurrent-actions b/scripts/.local/share/scripts/recurrent-actions index df82627..8ca1679 100755 --- a/scripts/.local/share/scripts/recurrent-actions +++ b/scripts/.local/share/scripts/recurrent-actions @@ -5,8 +5,6 @@ select_action() { "System resources usage" "Connectivity test" "Sync Doom emacs" - "Start videocall" - "Stop videocall" "Sync mail" ) action=$(printf '%s\n' "${action_content[@]}" | rofi -no-auto-select -i "$@" -dmenu -p "Choose an action") @@ -26,12 +24,8 @@ execute_action() { "System resources usage") launch_kitty "htop" ;; "Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;; "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" ;; - "Sync mail") execute_command "/home/coolnengs/.local/share/scripts/mail-sync" ;; + "Sync mail") execute_command "/home/coolnengs/.local/share/scripts/mail-sync -a" ;; esac } -script_folder="$HOME/.local/share/scripts" - select_action "$@" diff --git a/scripts/.local/share/scripts/videocall b/scripts/.local/share/scripts/videocall deleted file mode 100755 index 7ffb0d5..0000000 --- a/scripts/.local/share/scripts/videocall +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -usage() { - echo "Usage: videocall " - exit 1 -} - -move_workspace() { - swaymsg workspace "$1", move workspace to "$2" -} - -main() { - if [ "$1" = "start" ]; then - move_workspace "3: " "HDMI-A-2" - move_workspace "2: " "eDP-1" - elif [ "$1" = "stop" ]; then - move_workspace "3: " "eDP-1" - move_workspace "2: " "HDMI-A-2" - else - usage - fi -} - -if [ $# -lt 1 ]; then - usage -fi - -action=$1 - -main "$action"