mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-09 04:51:27 +02:00
pentoo-livecd: add hidpi toggle for livecd.
This commit is contained in:
parent
72f212f88a
commit
8495a57a14
4 changed files with 28 additions and 5 deletions
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
/etc/init.d/NetworkManager start
|
||||
13
pentoo/pentoo-livecd/files/toggle_hidpi
Executable file
13
pentoo/pentoo-livecd/files/toggle_hidpi
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
if [ "${XSESSION}" = "Xfce4" ] || [ "${XSESSION}" = "Xfce" ]; then
|
||||
if [ "$(xfconf-query -c xsettings -p /Gdk/WindowScalingFactor)" = "1" ]; then
|
||||
xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -s 2
|
||||
xfconf-query -c xfwm4 -p /general/theme -s Default-xhdpi
|
||||
else
|
||||
xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -s 1
|
||||
xfconf-query -c xfwm4 -p /general/theme -s Default
|
||||
fi
|
||||
else
|
||||
printf "This tool currently only supports XFCE\n"
|
||||
exit 1
|
||||
fi
|
||||
11
pentoo/pentoo-livecd/files/toggle_hidpi.desktop
Normal file
11
pentoo/pentoo-livecd/files/toggle_hidpi.desktop
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=Toggle HiDPI
|
||||
Comment=Toggle HiDPI
|
||||
Exec=/usr/bin/toggle_hidpi
|
||||
Icon=video-display
|
||||
Path=
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
GenericName=Toggle HiDPI
|
||||
|
|
@ -40,12 +40,13 @@ src_install() {
|
|||
|
||||
newinitd "${FILESDIR}"/binary-driver-handler.initd-2020.3-r1 binary-driver-handler
|
||||
|
||||
exeinto /root/Desktop
|
||||
doexe "${FILESDIR}"/networkmanager.desktop
|
||||
exeinto /etc/skel/Desktop
|
||||
#network manager shortcuts
|
||||
newexe "${FILESDIR}"/sudo-networkmanager.desktop networkmanager.desktop
|
||||
newbin "${FILESDIR}/pentoo-sudo-start-nm-r2" pentoo-sudo-start-nm
|
||||
newsbin "${FILESDIR}/pentoo-start-nm-r2" pentoo-start-nm
|
||||
#hidpi shortcuts
|
||||
doexe "${FILESDIR}"/toggle_hidpi.desktop
|
||||
dobin "${FILESDIR}/toggle_hidpi"
|
||||
|
||||
exeinto /etc/local.d
|
||||
doexe "${FILESDIR}"/00-fix-distdir.start
|
||||
Loading…
Reference in a new issue