Compare commits

...

3 Commits

Author SHA1 Message Date
John Mertz efda727106 Append to previous 2024-01-21 19:49:13 -07:00
John Mertz 1fff8e80bf Add refresh rate option
Bitrate for 4k@60 seems to be slightly too high, which causes artifacts and cut-outs. Lock to 30fps.
2024-01-21 19:47:35 -07:00
John Mertz 1ae0279f42 Fix distrobox command 2024-01-21 19:43:25 -07:00
2 changed files with 5 additions and 2 deletions

View File

@ -92,6 +92,7 @@ my %configs = (
'width' => 3840,
'height' => 2160,
'x' => 900,
'refresh' => 30,
'y' => 0,
'rotate' => 0,
'scale' => 1.33333,
@ -128,6 +129,7 @@ my %configs = (
'on' => 1,
'width' => 3840,
'height' => 2160,
'refresh' => 30,
'x' => 0,
'y' => 0,
'rotate' => 0,
@ -411,7 +413,8 @@ foreach my $out (keys %$on) {
defined $on->{$out}->{height} )
{
$cmd .= " mode $on->{$out}->{width}x" .
"$on->{$out}->{height}";
"$on->{$out}->{height}" .
(defined($on->{$out}->{refresh}) ? '@'.$on->{$out}->{refresh}.'Hz' : '');
}
if (defined $on->{$out}->{bg} &&
-f $on->{$out}->{bg})

View File

@ -3,5 +3,5 @@ if [ -z ${SWAYSOCK+x} ]; then
i3 reload
else
swaymsg reload
distrobox-enter -n debian${HOME}/scripts/sway/displays.pl
distrobox-enter -n debian -- ${HOME}/scripts/sway/displays.pl
fi