18 lines
295 B
Bash
Executable File
18 lines
295 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Adjust these to match `hyprctl monitors`
|
|
ULTRAWIDE="DP-1"
|
|
LAPTOP="eDP-1"
|
|
|
|
MONITOR="$1"
|
|
|
|
case "$MONITOR" in
|
|
"$ULTRAWIDE")
|
|
hyprctl dispatch layoutmsg colresize all 0.25
|
|
;;
|
|
"$LAPTOP")
|
|
hyprctl dispatch layoutmsg colresize all 1.0
|
|
;;
|
|
esac
|