mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
refactor bash to sh
This commit is contained in:
parent
4c38069b83
commit
1748c3bae4
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
# Function to display colored text
|
# Function to display colored text
|
||||||
colored_echo() {
|
colored_echo() {
|
||||||
|
@ -128,4 +128,4 @@ remove_device() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Initialize
|
# Initialize
|
||||||
main_menu
|
main_menu
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
# Function to auto-detect displays and set common resolution
|
# Function to auto-detect displays and set common resolution
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
# Function to change monitor orientation
|
# Function to change monitor orientation
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
RESET='\033[0m'
|
RESET='\033[0m'
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
# Function to duplicate displays
|
# Function to duplicate displays
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
RESET='\033[0m'
|
RESET='\033[0m'
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
# Function to extend displays
|
# Function to extend displays
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
# Function to manage monitor arrangement
|
# Function to manage monitor arrangement
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
# Function to reset scaling back to 1 (native resolution) for all monitors
|
# Function to reset scaling back to 1 (native resolution) for all monitors
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
# Function to scale smaller monitors to the highest resolution of a bigger monitor
|
# Function to scale smaller monitors to the highest resolution of a bigger monitor
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
# Function to set a monitor as primary
|
# Function to set a monitor as primary
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
source ./utils/monitor-control/utility_functions.sh
|
source ./utils/monitor-control/utility_functions.sh
|
||||||
|
|
||||||
RESET='\033[0m'
|
RESET='\033[0m'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
|
|
||||||
# Function to execute xrandr commands and handle errors
|
# Function to execute xrandr commands and handle errors
|
||||||
execute_command() {
|
execute_command() {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
@@ -0,0 +1,168 @@
|
#!/bin/sh -e
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Function to display colored text
|
# Function to display colored text
|
||||||
colored_echo() {
|
colored_echo() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user