Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
live-installer
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
live-installer
Commits
23f02e16
Kaydet (Commit)
23f02e16
authored
Mar 06, 2020
tarafından
Clement Lefebvre
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Virtualbox: Bump live resolution to a minimum of 1024x768px
üst
7daff245
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
live-installer.install
debian/live-installer.install
+1
-0
bump-virtualbox-resolution.desktop
etc/xdg/autostart/bump-virtualbox-resolution.desktop
+10
-0
bump-virtualbox-resolution
usr/bin/bump-virtualbox-resolution
+25
-0
No files found.
debian/live-installer.install
Dosyayı görüntüle @
23f02e16
etc
usr
sbin
lib
etc/xdg/autostart/bump-virtualbox-resolution.desktop
0 → 100644
Dosyayı görüntüle @
23f02e16
[Desktop Entry]
Name=Bump Virtualbox Resolution
Comment=Increase resolution to 1024x768 if it's below that value
Exec=bump-virtualbox-resolution
Terminal=false
Type=application
Icon=virtualbox
StartupNotify=false
Categories=System;Monitor;
\ No newline at end of file
usr/bin/bump-virtualbox-resolution
0 → 100755
Dosyayı görüntüle @
23f02e16
#!/usr/bin/python3
import
subprocess
import
gi
gi
.
require_version
(
'Gdk'
,
'3.0'
)
from
gi.repository
import
Gdk
out
=
subprocess
.
run
([
"xrandr"
],
capture_output
=
True
)
.
stdout
.
decode
()
outlines
=
out
.
split
(
"
\n
"
)
output
=
None
for
line
in
outlines
:
if
(
"Virtual"
in
line
)
and
(
"primary"
in
line
):
output
=
line
.
partition
(
" "
)[
0
]
monitor
=
Gdk
.
Display
.
get_default
()
.
get_primary_monitor
()
geo
=
monitor
.
get_geometry
()
if
output
:
print
(
"Found virtual display:
%
s"
%
output
)
if
geo
.
height
<
768
:
subprocess
.
run
([
"xrandr"
,
"--output"
,
output
,
"--mode"
,
"1024x768"
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment