-
Notifications
You must be signed in to change notification settings - Fork 2
/
panel.bash
40 lines (28 loc) · 1.85 KB
/
panel.bash
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
#!/bin/bash
# Adds launchers to the xfce panel.
# Approach from:
# https://forum.xfce.org/viewtopic.php?id=8619
# Run by the panel.desktop item that is placed
# into the .config/autostart directory by the Dockerfile.
if [ ! -e /home/student/.config/xfce4/panel/launcher-50 ];
then
mkdir -p /home/student/.config/xfce4/panel/launcher-50
cp /usr/share/applications/mousepad.desktop /home/student/.config/xfce4/panel/launcher-50
mkdir -p /home/student/.config/xfce4/panel/launcher-51
cp /usr/share/applications/codium.desktop /home/student/.config/xfce4/panel/launcher-51
mkdir -p /home/student/.config/xfce4/panel/launcher-52
cp /usr/share/applications/firefox-esr.desktop /home/student/.config/xfce4/panel/launcher-52
xfce4-panel -r
xfconf-query -c xfce4-panel -p /plugins/plugin-50 -t string -s "launcher" --create
xfconf-query -c xfce4-panel -p /plugins/plugin-50/items -t string -s "mousepad.desktop" -a --create
xfconf-query -c xfce4-panel -p /plugins/plugin-51 -t string -s "launcher" --create
xfconf-query -c xfce4-panel -p /plugins/plugin-51/items -t string -s "codium.desktop" -a --create
xfconf-query -c xfce4-panel -p /plugins/plugin-52 -t string -s "launcher" --create
xfconf-query -c xfce4-panel -p /plugins/plugin-52/items -t string -s "firefox-esr.desktop" -a --create
xfconf-query -c xfce4-panel -p /plugins/plugin-53 -t string -s "separator" --create
xfconf-query -c xfce4-panel -p /panels/panel-2/plugin-ids -rR
xfconf-query -c xfce4-panel -p /panels/panel-2/plugin-ids -t int -s 15 -t int -s 16 -t int -s 17 -t int -s 50 -t int -s 51 -t int -s 52 -t int -s 53 -t int -s 18 -t int -s 20 -t int -s 21 -t int -s 22 --create
xfce4-panel -r
xfconf-query -c xfce4-desktop -p /desktop-icons/file-icons/show-home -n -t bool -s false
xfconf-query -c xfce4-desktop -p /desktop-icons/file-icons/show-filesystem -n -t bool -s false
fi