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"