From 3fc2b97b27648fdccfa2ea194c4bc69b59dd9230 Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Fri, 2 May 2025 16:37:24 -0500 Subject: [PATCH] Finally fixed DPMS setting? --- configure-gallium.sh | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/configure-gallium.sh b/configure-gallium.sh index be7268a..1ad9daa 100644 --- a/configure-gallium.sh +++ b/configure-gallium.sh @@ -17,7 +17,12 @@ function configureMachine() { # Disable screensaver. sed -i 's/mode:[[:space:]]*blank/mode: off/' /home/${SUDO_USER}/.xscreensaver - + xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/dpms-enabled -t bool -s false + + # Change clock format. + plugin_name="$( xfconf-query -c xfce4-panel -p /plugins -lv | grep -E '/plugins/plugin-[0-9]+.*clock' | cut -d" " -f '1-1' )" + xfconf-query -c xfce4-panel -p ${plugin_name}/digital-format -t "string" -s '%T%n%Y-%m-%d' -n + # Install Moonlight. apt-get -y install flatpak flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo @@ -30,7 +35,7 @@ function configureMachine() { mv Moonlight.conf "/home/${SUDO_USER}/.var/app/com.moonlight_stream.Moonlight/config/Moonlight Game Streaming Project/." # Add icon to desktop - cat <<- ICON > /home/${SUDO_USER/Desktop/Moonlight.desktop + cat <<- ICON > /home/${SUDO_USER}/Desktop/Moonlight.desktop [Desktop Entry] Version 1.0 Type Application @@ -44,20 +49,9 @@ function configureMachine() { ICON # Make Moonlight run on startup. - cat <<- MOON > /home/${SUDO_USER}/moonlight.sh - #!/bin/bash - flatpak run com.moonlight_stream.Moonlight & - MOON - chown ${SUDO_USER}:${SUDO_USER} /home/${SUDO_USER}/moonlight.sh - chmod +x /home/${SUDO_USER}/moonlight.sh - cat <<- 'STARTUP' >> /home/${SUDO_USER}/.profile - if [ -z "$SSH_CLIENT" ] ; then - xset -dpms - xset s off - xset s noblank - $HOME/moonlight.sh - fi - STARTUP + mkdir -p /home/${SUDO_USER}/.config/autostart + ln -s /home/${SUDO_USER}/Desktop/Moonlight.desktop /home/${SUDO_USER}/.config/autostart/. + chown -R ${SUDO_USER}:${SUDO_USER} /home/${SUDO_USER}/.config # Reboot! reboot