Swayscript : Add dasha monitor to vrr & mon.
This commit is contained in:
parent
f068155c19
commit
0812f2193b
|
@ -1,16 +1,11 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
text = ''
|
text = ''
|
||||||
export _swaymonlist=(
|
|
||||||
"ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165"
|
|
||||||
"AU Optronics 0x418D Unknown"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Enable monitors.
|
# Enable monitors.
|
||||||
function monon() {
|
function monon() {
|
||||||
on() {
|
on() {
|
||||||
for mon in ''${_swaymonlist[@]}; do
|
swaymsg "output \"ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165\" power on"
|
||||||
swaymsg "output \"''${mon}\" power on"
|
swaymsg "output \"AU Optronics 0x418D Unknown\" power on"
|
||||||
done
|
swaymsg "output \"AOC 24G2W1G4 ATNL61A129625\" power on"
|
||||||
_monstate on
|
_monstate on
|
||||||
}
|
}
|
||||||
_sway_iterate_sockets on
|
_sway_iterate_sockets on
|
||||||
|
@ -19,9 +14,9 @@
|
||||||
# Disable monitors.
|
# Disable monitors.
|
||||||
function monoff() {
|
function monoff() {
|
||||||
off() {
|
off() {
|
||||||
for mon in ''${_swaymonlist[@]}; do
|
swaymsg "output \"ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165\" power off"
|
||||||
swaymsg "output \"''${mon}\" power off"
|
swaymsg "output \"AU Optronics 0x418D Unknown\" power off"
|
||||||
done
|
swaymsg "output \"AOC 24G2W1G4 ATNL61A129625\" power off"
|
||||||
_monstate off
|
_monstate off
|
||||||
}
|
}
|
||||||
_sway_iterate_sockets off
|
_sway_iterate_sockets off
|
||||||
|
|
|
@ -1,17 +1,13 @@
|
||||||
# TODO: Add different modes for different screens.
|
# TODO: Add different modes for different screens.
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
text = ''
|
text = ''
|
||||||
export _swayvrrlist=(
|
|
||||||
"Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Enable VRR.
|
# Enable VRR.
|
||||||
function vrron() {
|
function vrron() {
|
||||||
on() {
|
on() {
|
||||||
for vrr in ''${_swayvrrlist[@]}; do
|
swaymsg "output \"Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622\" adaptive_sync on"
|
||||||
swaymsg "output \"''${vrr}\" adaptive_sync on"
|
swaymsg "output \"Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622\" mode 3440x1440@164.999Hz"
|
||||||
swaymsg "output \"''${vrr}\" mode 3440x1440@164.999Hz"
|
swaymsg "output \"AOC 24G2W1G4 ATNL61A129625\" adaptive_sync on"
|
||||||
done
|
swaymsg "output \"AOC 24G2W1G4 ATNL61A129625\" mode 1920x1080@144.000Hz"
|
||||||
_vrrstate on
|
_vrrstate on
|
||||||
}
|
}
|
||||||
_sway_iterate_sockets on
|
_sway_iterate_sockets on
|
||||||
|
@ -20,10 +16,10 @@
|
||||||
# Disable VRR.
|
# Disable VRR.
|
||||||
function vrroff() {
|
function vrroff() {
|
||||||
off() {
|
off() {
|
||||||
for vrr in ''${_swayvrrlist[@]}; do
|
swaymsg "output \"Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622\" adaptive_sync off"
|
||||||
swaymsg "output \"''${vrr}\" adaptive_sync off"
|
swaymsg "output \"Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622\" mode 3440x1440@59.973Hz"
|
||||||
swaymsg "output \"''${vrr}\" mode 3440x1440@59.973Hz"
|
swaymsg "output \"AOC 24G2W1G4 ATNL61A129625\" adaptive_sync off"
|
||||||
done
|
swaymsg "output \"AOC 24G2W1G4 ATNL61A129625\" mode 1920x1080@60.000Hz"
|
||||||
_vrrstate off
|
_vrrstate off
|
||||||
}
|
}
|
||||||
_sway_iterate_sockets off
|
_sway_iterate_sockets off
|
||||||
|
|
Loading…
Reference in a new issue