Fix monitor configs

This commit is contained in:
Tobias Reisinger 2024-08-16 16:20:41 +02:00
parent b75e692b60
commit db15c95662
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 8 additions and 19 deletions

View file

@ -3,14 +3,11 @@
modes="monitor-std modes="monitor-std
monitor-single monitor-single
monitor-single-sec monitor-single-sec
monitor-fhd
zellij" zellij"
portalo_mode_monitor () { portalo_mode_monitor () {
echo "Loading portalo monitor layout ${1:-std}" echo "Loading portalo monitor layout ${1:-std}"
yadm config --unset-all local.class monitor-single yadm config --unset-all local.class monitor-*
yadm config --unset-all local.class monitor-single-sec
yadm config --unset-all local.class monitor-fhd
if [ -n "$1" ]; then if [ -n "$1" ]; then
yadm config --add local.class "$1" yadm config --add local.class "$1"
@ -33,10 +30,8 @@ else
fi fi
case $mode in case $mode in
"monitor-std") portalo_mode_monitor ;; "monitor-std") portalo_mode_monitor ;;
"monitor-single") portalo_mode_monitor "$mode" ;; "monitor-"*) portalo_mode_monitor "$mode" ;;
"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

View file

@ -1,7 +0,0 @@
$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

View file

@ -3,6 +3,7 @@ $mon2 = HDMI-A-1
$mon = $mon1 $mon = $mon1
monitor = $mon1,2560x1440@144,0x0,auto monitor = $mon1,2560x1440@144,0x0,auto
monitor = $mon1,1920x1080@60,0x0,auto
monitor = $mon2,disable monitor = $mon2,disable
source = ~/.config/hypr/lib/single_mon.conf source = ~/.config/hypr/lib/single_mon.conf

View file

@ -1,7 +1,7 @@
$mon1 = DP-1 $mon1 = DP-1
$mon2 = HDMI-A-1 $mon2 = HDMI-A-1
monitor = $mon1,2560x1440@144,1920x0,auto monitor = $mon1,1920x1080@60,1920x0,auto
monitor = $mon2,1920x1080@60,0x0,auto monitor = $mon2,1920x1080@60,0x0,auto
source = ~/.config/hypr/lib/7_3_ws_layout.conf source = ~/.config/hypr/lib/7_3_ws_layout.conf

View file

@ -10,6 +10,6 @@ try:
except: except:
pass pass
import socket #import socket
if socket.gethostname() == 'portalo': #if socket.gethostname() == 'portalo':
c.zoom.default = 125 # c.zoom.default = 125