Compare commits
3 commits
1a40104856
...
8c194df84b
Author | SHA1 | Date | |
---|---|---|---|
8c194df84b | |||
63d7830987 | |||
5b8cbe7703 |
7 changed files with 75 additions and 31 deletions
36
.bin/host-mode##hostname.portalo
Executable file
36
.bin/host-mode##hostname.portalo
Executable file
|
@ -0,0 +1,36 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
modes="std
|
||||||
|
single
|
||||||
|
single-sec"
|
||||||
|
|
||||||
|
portalo_mode_std () {
|
||||||
|
echo "Loading portalo standard screen layout"
|
||||||
|
yadm config --unset-all local.class monitor-single
|
||||||
|
yadm config --unset-all local.class monitor-single-sec
|
||||||
|
}
|
||||||
|
|
||||||
|
portalo_mode_single () {
|
||||||
|
echo "Loading portalo single screen layout"
|
||||||
|
yadm config --unset-all local.class monitor-single-sec
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
mode=$(echo "$modes" | $DMENU -p "mode")
|
||||||
|
else
|
||||||
|
mode=$1
|
||||||
|
fi
|
||||||
|
|
||||||
|
case $mode in
|
||||||
|
"std") portalo_mode_std ;;
|
||||||
|
"single") portalo_mode_single ;;
|
||||||
|
"single-sec") portalo_mode_single_sec ;;
|
||||||
|
*) echo "'$mode' is not a valid mode (single, std)" ;;
|
||||||
|
esac
|
|
@ -1,17 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
portalo_mode_std () {
|
|
||||||
echo "Loading portalo standard screen layout"
|
|
||||||
yadm config --unset-all local.class monitor-single
|
|
||||||
}
|
|
||||||
|
|
||||||
portalo_mode_single () {
|
|
||||||
echo "Loading portalo single screen layout"
|
|
||||||
yadm config --add local.class monitor-single
|
|
||||||
}
|
|
||||||
|
|
||||||
case $1 in
|
|
||||||
std) portalo_mode_std ;;
|
|
||||||
single) portalo_mode_single ;;
|
|
||||||
*) echo "'$1' is not a valid-setup (single, std)" ;;
|
|
||||||
esac
|
|
|
@ -10,6 +10,7 @@ bind = $main_mod, F, fullscreen,
|
||||||
bind = $main_mod, D, exec, j4-dmenu-desktop --dmenu="$DMENU"
|
bind = $main_mod, D, exec, j4-dmenu-desktop --dmenu="$DMENU"
|
||||||
bind = $main_mod, Pause, exec, menu-shutdown
|
bind = $main_mod, Pause, exec, menu-shutdown
|
||||||
bind = $main_mod, T, exec, ts-control
|
bind = $main_mod, T, exec, ts-control
|
||||||
|
bind = $main_mod, M, exec, host-mode
|
||||||
bind = $main_mod, C, exec, [float] $TERMINAL -e python
|
bind = $main_mod, C, exec, [float] $TERMINAL -e python
|
||||||
|
|
||||||
# Screenshot / Color picker
|
# Screenshot / Color picker
|
||||||
|
|
|
@ -1,20 +1,8 @@
|
||||||
$mon1 = DP-1
|
$mon1 = DP-1
|
||||||
$mon2 = HDMI-A-1
|
$mon2 = HDMI-A-1
|
||||||
|
$mon = $mon1
|
||||||
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:$mon1
|
|
||||||
workspace=$ws09, monitor:$mon1
|
|
||||||
workspace=$ws10, monitor:$mon1
|
|
||||||
|
|
||||||
monitor = $mon1,2560x1440@144,0x0,auto
|
monitor = $mon1,2560x1440@144,0x0,auto
|
||||||
monitor = $mon2,disable
|
monitor = $mon2,disable
|
||||||
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws08 $mon1
|
source = ~/.config/hypr/lib/single_mon.conf
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws09 $mon1
|
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws10 $mon1
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
$mon1 = DP-1
|
||||||
|
$mon2 = HDMI-A-1
|
||||||
|
$mon = $mon2
|
||||||
|
|
||||||
|
monitor = $mon1,disable
|
||||||
|
monitor = $mon2,1920x1080@60,0x0,auto
|
||||||
|
|
||||||
|
source = ~/.config/hypr/lib/single_mon.conf
|
|
@ -16,6 +16,13 @@ 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
|
||||||
|
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 $ws08 $mon2
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws09 $mon2
|
exec = hyprctl dispatch moveworkspacetomonitor $ws09 $mon2
|
||||||
exec = hyprctl dispatch moveworkspacetomonitor $ws10 $mon2
|
exec = hyprctl dispatch moveworkspacetomonitor $ws10 $mon2
|
||||||
|
|
21
.config/hypr/lib/single_mon.conf
Normal file
21
.config/hypr/lib/single_mon.conf
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
workspace=$ws01, monitor:$mon, default:true
|
||||||
|
workspace=$ws02, monitor:$mon
|
||||||
|
workspace=$ws03, monitor:$mon
|
||||||
|
workspace=$ws04, monitor:$mon
|
||||||
|
workspace=$ws05, monitor:$mon
|
||||||
|
workspace=$ws06, monitor:$mon
|
||||||
|
workspace=$ws07, monitor:$mon
|
||||||
|
workspace=$ws08, monitor:$mon
|
||||||
|
workspace=$ws09, monitor:$mon
|
||||||
|
workspace=$ws10, monitor:$mon
|
||||||
|
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws01 $mon
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws02 $mon
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws03 $mon
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws04 $mon
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws05 $mon
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws06 $mon
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws07 $mon
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws08 $mon
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws09 $mon
|
||||||
|
exec = hyprctl dispatch moveworkspacetomonitor $ws10 $mon
|
Loading…
Reference in a new issue