Skip to content

Commit 6982037

Browse files
authored
add power settings for mx xfce
1 parent 30b2e5e commit 6982037

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

oscfg/debian.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,50 @@ Name[ru]=Эффекты окна
570570
GenericName[ru]=Настройка Compton
571571
Comment[ru]=Настроить эффекты окна Compton
572572
NoDisplay=true
573+
EOF
574+
575+
mkdir -p "$WORK/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/"
576+
cat >"$WORK/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml" <<EOF
577+
<?xml version="1.0" encoding="UTF-8"?>
578+
<channel name="xfce4-session" version="1.0">
579+
<property name="shutdown" type="empty">
580+
<property name="ShowHibernate" type="bool" value="false"/>
581+
<property name="ShowSuspend" type="bool" value="false"/>
582+
<property name="ShowHybridSleep" type="bool" value="false"/>
583+
<property name="ShowSwitchUser" type="bool" value="false"/>
584+
</property>
585+
<property name="xfce4-power-manager" type="empty">
586+
<property name="dpms-enabled" type="bool" value="false"/>
587+
</property>
588+
</channel>
589+
EOF
590+
591+
cat >"$WORK/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml" <<EOF
592+
<?xml version="1.0" encoding="UTF-8"?>
593+
<channel name="xfce4-power-manager" version="1.0">
594+
<property name="xfce4-power-manager" type="empty">
595+
<property name="power-button-action" type="empty"/>
596+
<property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
597+
<property name="logind-handle-lid-switch" type="empty"/>
598+
<property name="blank-on-ac" type="int" value="0"/>
599+
<property name="blank-on-battery" type="empty"/>
600+
<property name="dpms-enabled" type="bool" value="false"/>
601+
<property name="dpms-on-ac-sleep" type="uint" value="0"/>
602+
<property name="dpms-on-ac-off" type="uint" value="0"/>
603+
<property name="dpms-on-battery-sleep" type="uint" value="0"/>
604+
<property name="dpms-on-battery-off" type="uint" value="0"/>
605+
<property name="hibernate-button-action" type="uint" value="0"/>
606+
<property name="sleep-button-action" type="uint" value="0"/>
607+
<property name="lid-action-on-ac" type="uint" value="0"/>
608+
<property name="critical-power-action" type="uint" value="0"/>
609+
<property name="lid-action-on-battery" type="uint" value="0"/>
610+
<property name="inactivity-on-ac" type="uint" value="0"/>
611+
<property name="brightness-switch-restore-on-exit" type="int" value="0"/>
612+
<property name="brightness-switch" type="int" value="0"/>
613+
<property name="brightness-level-on-ac" type="uint" value="100"/>
614+
<property name="presentation-mode" type="bool" value="false"/>
615+
</property>
616+
</channel>
573617
EOF
574618

575619
;;

0 commit comments

Comments
 (0)