summaryrefslogtreecommitdiff
path: root/setup-gparted-desktop.in
blob: 4b141aac7e4220eff4d10bf5efc780e05fc0d474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

setup-xorg-base gparted xinit st openbox ttf-freefont $@

# create openbox menu
mkdir -p ~/.config/openbox
cat >~/.config/openbox/menu.xml<<-__EOF__
	<?xml version="1.0" encoding="UTF-8"?>

	<openbox_menu xmlns="http://openbox.org/3.4/menu">
	<menu id="root-menu" label="Openbox 3">
	  <separator label="Applications" />
	  <item label="GParted">
	    <action name="Execute">
	      <command>gparted</command>
	    </action>
	  </item>
	  <item label="simple terminal">
	    <action name="Execute">
	      <command>st</command>
	    </action>
	  </item>
	  <separator />
	  <item label="Log Out">
	    <action name="Exit">
	      <prompt>yes</prompt>
	    </action>
	  </item>
	</menu>
	</openbox_menu>
__EOF__

# create xinitrc
cat >~/.xinitrc <<-__EOF__
	gparted &
	exec openbox-session
__EOF__

echo ""
echo " To start GParted run: startx"
echo ""