refactor bash to sh

This commit is contained in:
JEEVITHA KANNAN K S 2024-08-15 08:11:41 +05:30
parent 4c38069b83
commit 1748c3bae4
No known key found for this signature in database
GPG Key ID: 5904C34A2F7CE333
14 changed files with 26 additions and 16 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh -e
# Function to display colored text
colored_echo() {
@ -128,4 +128,4 @@ remove_device() {
}
# Initialize
main_menu
main_menu

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
# Function to auto-detect displays and set common resolution

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
# Function to change monitor orientation

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
RESET='\033[0m'

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
# Function to duplicate displays

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
RESET='\033[0m'

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
# Function to extend displays

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
# Function to manage monitor arrangement

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
# Function to reset scaling back to 1 (native resolution) for all monitors

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
# Function to scale smaller monitors to the highest resolution of a bigger monitor

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
# Function to set a monitor as primary

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh -e
source ./utils/monitor-control/utility_functions.sh
RESET='\033[0m'

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh -e
# Function to execute xrandr commands and handle errors
execute_command() {

View File

@ -1,5 +1,4 @@
@@ -0,0 +1,168 @@
#!/bin/bash
#!/bin/sh -e
# Function to display colored text
colored_echo() {