mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-24 12:29:44 +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
|
||||
colored_echo() {
|
||||
|
@ -128,4 +128,4 @@ remove_device() {
|
|||
}
|
||||
|
||||
# Initialize
|
||||
main_menu
|
||||
main_menu
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
source ./utils/monitor-control/utility_functions.sh
|
||||
|
||||
# Function to change monitor orientation
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
source ./utils/monitor-control/utility_functions.sh
|
||||
|
||||
RESET='\033[0m'
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
source ./utils/monitor-control/utility_functions.sh
|
||||
|
||||
# Function to duplicate displays
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
source ./utils/monitor-control/utility_functions.sh
|
||||
|
||||
RESET='\033[0m'
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
source ./utils/monitor-control/utility_functions.sh
|
||||
|
||||
# Function to extend displays
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
source ./utils/monitor-control/utility_functions.sh
|
||||
|
||||
# Function to manage monitor arrangement
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
source ./utils/monitor-control/utility_functions.sh
|
||||
|
||||
# Function to set a monitor as primary
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
source ./utils/monitor-control/utility_functions.sh
|
||||
|
||||
RESET='\033[0m'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
# Function to execute xrandr commands and handle errors
|
||||
execute_command() {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@@ -0,0 +1,168 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
# Function to display colored text
|
||||
colored_echo() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user