Improve host-mode script
This commit is contained in:
parent
b033291384
commit
a4d7b69f76
4 changed files with 46 additions and 43 deletions
|
@ -1,26 +1,20 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
modes="std
|
modes="monitor-std
|
||||||
single
|
monitor-single
|
||||||
single-sec
|
monitor-single-sec
|
||||||
|
monitor-fhd
|
||||||
zellij"
|
zellij"
|
||||||
|
|
||||||
portalo_mode_std () {
|
portalo_mode_monitor () {
|
||||||
echo "Loading portalo standard screen layout"
|
echo "Loading portalo monitor layout ${1:-std}"
|
||||||
yadm config --unset-all local.class monitor-single
|
yadm config --unset-all local.class monitor-single
|
||||||
yadm config --unset-all local.class monitor-single-sec
|
yadm config --unset-all local.class monitor-single-sec
|
||||||
}
|
yadm config --unset-all local.class monitor-fhd
|
||||||
|
|
||||||
portalo_mode_single () {
|
if [ -n "$1" ]; then
|
||||||
echo "Loading portalo single screen layout"
|
yadm config --add local.class "$1"
|
||||||
yadm config --unset-all local.class monitor-single-sec
|
fi
|
||||||
yadm config --add local.class monitor-single
|
|
||||||
}
|
|
||||||
|
|
||||||
portalo_mode_single_sec () {
|
|
||||||
echo "Loading portalo single screen layout on secondary screen"
|
|
||||||
yadm config --unset-all local.class monitor-single
|
|
||||||
yadm config --add local.class monitor-single-sec
|
|
||||||
}
|
}
|
||||||
|
|
||||||
portalo_mode_zellij () {
|
portalo_mode_zellij () {
|
||||||
|
@ -39,9 +33,10 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $mode in
|
case $mode in
|
||||||
"std") portalo_mode_std ;;
|
"monitor-std") portalo_mode_monitor ;;
|
||||||
"single") portalo_mode_single ;;
|
"monitor-single") portalo_mode_monitor "$mode" ;;
|
||||||
"single-sec") portalo_mode_single_sec ;;
|
"monitor-single-sec") portalo_mode_monitor "$mode" ;;
|
||||||
|
"monitor-fhd") portalo_mode_monitor "$mode" ;;
|
||||||
"zellij") portalo_mode_zellij ;;
|
"zellij") portalo_mode_zellij ;;
|
||||||
*) echo "'$mode' is not a valid mode (single, std)" ;;
|
*) echo "'$mode' is not a valid mode (single, std)" ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
$mon1 = DP-1
|
||||||
|
$mon2 = HDMI-A-1
|
||||||
|
|
||||||
|
monitor = $mon1,1920x1080@144,1920x0,auto
|
||||||
|
monitor = $mon2,1920x1080@60,0x0,auto
|
||||||
|
|
||||||
|
source = ~/.config/hypr/lib/7_3_ws_layout.conf
|
|
@ -1,28 +1,7 @@
|
||||||
$mon1 = DP-1
|
$mon1 = DP-1
|
||||||
$mon2 = HDMI-A-1
|
$mon2 = HDMI-A-1
|
||||||
|
|
||||||
workspace=$ws01, monitor:$mon1, default:true
|
|
||||||
workspace=$ws02, monitor:$mon1
|
|
||||||
workspace=$ws03, monitor:$mon1
|
|
||||||
workspace=$ws04, monitor:$mon1
|
|
||||||
workspace=$ws05, monitor:$mon1
|
|
||||||
workspace=$ws06, monitor:$mon1
|
|
||||||
workspace=$ws07, monitor:$mon1
|
|
||||||
|
|
||||||
workspace=$ws08, monitor:$mon2
|
|
||||||
workspace=$ws09, monitor:$mon2, default:true
|
|
||||||
workspace=$ws10, monitor:$mon2
|
|
||||||
|
|
||||||
monitor = $mon1,2560x1440@144,1920x0,auto
|
monitor = $mon1,2560x1440@144,1920x0,auto
|
||||||
monitor = $mon2,1920x1080@60,0x0,auto
|
monitor = $mon2,1920x1080@60,0x0,auto
|
||||||
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws01 $mon1
|
source = ~/.config/hypr/lib/7_3_ws_layout.conf
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws02 $mon1
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws03 $mon1
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws04 $mon1
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws05 $mon1
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws06 $mon1
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws07 $mon1
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws08 $mon2
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws09 $mon2
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws10 $mon2
|
|
||||||
|
|
22
.config/hypr/lib/7_3_ws_layout.conf
Normal file
22
.config/hypr/lib/7_3_ws_layout.conf
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
workspace=$ws01, monitor:$mon1, default:true
|
||||||
|
workspace=$ws02, monitor:$mon1
|
||||||
|
workspace=$ws03, monitor:$mon1
|
||||||
|
workspace=$ws04, monitor:$mon1
|
||||||
|
workspace=$ws05, monitor:$mon1
|
||||||
|
workspace=$ws06, monitor:$mon1
|
||||||
|
workspace=$ws07, monitor:$mon1
|
||||||
|
|
||||||
|
workspace=$ws08, monitor:$mon2
|
||||||
|
workspace=$ws09, monitor:$mon2, default:true
|
||||||
|
workspace=$ws10, monitor:$mon2
|
||||||
|
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws01 $mon1
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws02 $mon1
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws03 $mon1
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws04 $mon1
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws05 $mon1
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws06 $mon1
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws07 $mon1
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws08 $mon2
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws09 $mon2
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws10 $mon2
|
Loading…
Reference in a new issue