Skip to content

Commit f433901

Browse files
authored
add xubuntu user/power settings
1 parent 686eda6 commit f433901

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

oscfg/ubuntu.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,27 @@ EOF
131131
cat >"$WORK/etc/skel/.config/kscreenlockerrc" <<EOF
132132
[Daemon]
133133
Autolock=false
134+
EOF
135+
136+
esac
137+
138+
case "$1" in
139+
ubuntu-*-xubuntu-desktop)
140+
mkdir -p "$WORK/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/"
141+
cat >"$WORK/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml" <<EOF
142+
<?xml version="1.0" encoding="UTF-8"?>
143+
<channel name="xfce4-session" version="1.0">
144+
<property name="shutdown" type="empty">
145+
<property name="ShowHibernate" type="bool" value="false"/>
146+
<property name="ShowSuspend" type="bool" value="false"/>
147+
<property name="ShowHybridSleep" type="bool" value="false"/>
148+
<property name="ShowSwitchUser" type="bool" value="false"/>
149+
<property name="ShowLogout" type="bool" value="false"/>
150+
</property>
151+
<property name="xfce4-power-manager" type="empty">
152+
<property name="dpms-enabled" type="bool" value="false"/>
153+
</property>
154+
</channel>
134155
EOF
135156

136157
esac

0 commit comments

Comments
 (0)