Fix monitor configs
This commit is contained in:
parent
b75e692b60
commit
db15c95662
5 changed files with 8 additions and 19 deletions
|
@ -3,14 +3,11 @@
|
|||
modes="monitor-std
|
||||
monitor-single
|
||||
monitor-single-sec
|
||||
monitor-fhd
|
||||
zellij"
|
||||
|
||||
portalo_mode_monitor () {
|
||||
echo "Loading portalo monitor layout ${1:-std}"
|
||||
yadm config --unset-all local.class monitor-single
|
||||
yadm config --unset-all local.class monitor-single-sec
|
||||
yadm config --unset-all local.class monitor-fhd
|
||||
yadm config --unset-all local.class monitor-*
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
yadm config --add local.class "$1"
|
||||
|
@ -33,10 +30,8 @@ else
|
|||
fi
|
||||
|
||||
case $mode in
|
||||
"monitor-std") portalo_mode_monitor ;;
|
||||
"monitor-single") portalo_mode_monitor "$mode" ;;
|
||||
"monitor-single-sec") portalo_mode_monitor "$mode" ;;
|
||||
"monitor-fhd") portalo_mode_monitor "$mode" ;;
|
||||
"monitor-std") portalo_mode_monitor ;;
|
||||
"monitor-"*) portalo_mode_monitor "$mode" ;;
|
||||
"zellij") portalo_mode_zellij ;;
|
||||
*) echo "'$mode' is not a valid mode (single, std)" ;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue