Anpassungen für cinnamon (#14)

Reviewed-on: lxcafe/lxcafe#14
This commit is contained in:
2026-03-27 18:30:46 +01:00
parent affa7119ee
commit efbbedf5ae
7 changed files with 710 additions and 80 deletions
@@ -2,13 +2,9 @@
SCRIPT_VERSION="v10" SCRIPT_VERSION="v10"
bIsVlcInstalled=false
# Prompt helper: ask a question and return 0 (yes) for j/J/ja/y/Y, non-zero otherwise
question_answered_with_yes() { question_answered_with_yes() {
local prompt="$1" local prompt="$1"
local ans local ans
# Use %b to interpret backslash escape sequences (\n, \t, etc.)
printf '%b\n Geben Sie j oder n ein und die Eingabetaste,\n Abbruch mit jeder anderen Taste ... [j/N]: ' "$prompt" printf '%b\n Geben Sie j oder n ein und die Eingabetaste,\n Abbruch mit jeder anderen Taste ... [j/N]: ' "$prompt"
read -r ans read -r ans
case "$ans" in case "$ans" in
@@ -18,7 +14,6 @@ question_answered_with_yes() {
esac esac
} }
echo " echo "
##################################### #####################################
#### Nachinstallationsarbeiten #### Nachinstallationsarbeiten
@@ -27,16 +22,11 @@ echo "
#### Was tut dieses Skript? #### #### Was tut dieses Skript? ####
# Vorausgesetzt wird eine Installation von Linux Mint XFCE. # Vorausgesetzt wird eine Installation von Linux Mint (XFCE oder Cinnamon).
# Das Skript bietet -teilweise interaktiv- die Installation von zusätzlichen Programmen an, die Linux Mint XFCE nicht standardmässig mitbringt. # Das Skript bietet -teilweise interaktiv- die Installation von zusätzlichen Programmen an, die Linux Mint nicht standardmässig mitbringt.
#
# Folgende Dateien werden aus dem Skript referenziert und werden im selben Verzeichnis wie dieses Skript erwartet
## - xfce4-panel-profiles.tar.bz2
#
# Zu Beginn werden die folgenden zusätzlichen Programme in einem Schritt installiert: # Zu Beginn werden die folgenden zusätzlichen Programme in einem Schritt installiert:
# #
# xfce4-goodies (zusätzliche Elemente für die Taskleiste)
# xfce4-panel-profiles (Tool für die Taskleistenbearbeitung)
# clementine (Audioplayer und Musikbibliothekverwaltung) # clementine (Audioplayer und Musikbibliothekverwaltung)
# vlc (weltbester Mediaplayer ;-)) # vlc (weltbester Mediaplayer ;-))
# htop (Systemmonitortool) # htop (Systemmonitortool)
@@ -45,25 +35,83 @@ echo "
# asunder (Audio-CDs in z.B. mp3-Dateien verwandeln (rippen)) # asunder (Audio-CDs in z.B. mp3-Dateien verwandeln (rippen))
# gtkhash (Prüfsummen von Dateien erstellen und überprüfen) # gtkhash (Prüfsummen von Dateien erstellen und überprüfen)
# Danach geht es interaktiv weiter. # Danach geht es interaktiv weiter.
" "
# #
#
#
sudo apt-get update sudo apt-get update
# needed by script to unzip Aptos font echo "#### 64 bit Mint - Es werden notwendige Programme für das Ausführen des Skripts installiert ####"
sudo apt install unzip -y sudo apt -y install unzip
echo "#### 64 bit Mint - Es werden weitere hilfreiche Programme installiert ####"
sudo apt -y install clementine vlc htop hardinfo font-manager asunder gtkhash
sSuffixDate=$(date '+%Y-%m-%d_%H:%M:%S') sSuffixDate=$(date '+%Y-%m-%d_%H:%M:%S')
detect_desktop() {
if [ -n "$XDG_CURRENT_DESKTOP" ]; then
case "$XDG_CURRENT_DESKTOP" in
XFCE|Xfce|xfce) echo "xfce" ;;
X-Cinnamon|Cinnamon|cinnamon) echo "cinnamon" ;;
esac
elif [ -n "$DESKTOP_SESSION" ]; then
case "$DESKTOP_SESSION" in
*xfce*|*XFCE*) echo "xfce" ;;
*cinnamon*|*Cinnamon*) echo "cinnamon" ;;
esac
fi
}
echo echo
if question_answered_with_yes "#### Installiere Zusatzprogramme für 64 bit Mint XFCE? ####"; then echo
echo "#### 64 bit Mint XFCE ####" echo "### Desktop-Umgebung erkennen ###"
sudo apt -y install xfce4-goodies clementine vlc htop hardinfo font-manager asunder gtkhash DETECTED_DESKTOP=$(detect_desktop)
bIsVlcInstalled=true
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
if [ -z "$DETECTED_DESKTOP" ]; then
echo
echo
echo "Desktop-Umgebung konnte nicht erkannt werden."
echo "Bitte manuell auswählen:"
echo "1) XFCE"
echo "2) Cinnamon"
echo -n "Auswahl: "
read -r desktop_choice
case "$desktop_choice" in
1) DESKTOP="xfce" ;;
2) DESKTOP="cinnamon" ;;
*) echo "Ungültige Auswahl. Skript wird beendet."; exit 1 ;;
esac
else
echo
echo
echo "Erkannte Desktop-Umgebung: $DETECTED_DESKTOP"
if question_answered_with_yes "Verwende erkannte Desktop-Umgebung?"; then
DESKTOP="$DETECTED_DESKTOP"
else
echo
echo
echo "Bitte manuell auswählen:"
echo "1) XFCE"
echo "2) Cinnamon"
echo -n "Auswahl: "
read -r desktop_choice
case "$desktop_choice" in
1) DESKTOP="xfce" ;;
2) DESKTOP="cinnamon" ;;
*) echo "Ungültige Auswahl. Skript wird beendet."; exit 1 ;;
esac
fi fi
fi
case "$DESKTOP" in
xfce)
source "$SCRIPT_DIR/xfce/xfce.sh"
;;
cinnamon)
source "$SCRIPT_DIR/cinnamon/cinnamon.sh"
;;
esac
echo "" echo ""
echo "" echo ""
@@ -77,23 +125,20 @@ if question_answered_with_yes " ### Installiere Sensoren? ###"; then
sudo apt install lm-sensors psensor sudo apt install lm-sensors psensor
sudo sensors-detect sudo sensors-detect
sudo service kmod start sudo service kmod start
if [ "$DESKTOP" = "xfce" ]; then
echo "## im Anschluss \"psensor\" konfigurieren im XFCE-Applet in der Taskleiste" echo "## im Anschluss \"psensor\" konfigurieren im XFCE-Applet in der Taskleiste"
fi fi
fi
echo echo
echo echo
if [ "$bIsVlcInstalled" = true ]; then
echo "### Kauf-DVDs abspielen ###" echo "### Kauf-DVDs abspielen ###"
if question_answered_with_yes " ### Installiere Paket um Film DVDs abspielen zu können? ###"; then if question_answered_with_yes " ### Installiere Paket um Film DVDs abspielen zu können? ###"; then
echo "### Kauf-DVDs abspielen ###" echo "### Kauf-DVDs abspielen ###"
sudo apt install libdvd-pkg sudo apt install libdvd-pkg
sudo dpkg-reconfigure libdvd-pkg sudo dpkg-reconfigure libdvd-pkg
fi fi
else
echo "Player Fehlt
## VLC muss installiert sein um Kauf-DVDs abspielen zu können"
fi
echo echo
@@ -166,8 +211,6 @@ if question_answered_with_yes " ### Installiere Google Schriften? ###"; then
echo "Fertig! Google Schriftarten sind installiert." echo "Fertig! Google Schriftarten sind installiert."
echo "Die Anpassung der Standardschriften und/oder das Erstellen der Ersetzungstabelle in Libre Office muss manuell erfolgen, falls gewünscht." echo "Die Anpassung der Standardschriften und/oder das Erstellen der Ersetzungstabelle in Libre Office muss manuell erfolgen, falls gewünscht."
fi fi
#
@@ -180,6 +223,7 @@ if question_answered_with_yes " ### Installiere Chromium? ###"; then
sudo apt install chromium sudo apt install chromium
fi fi
echo echo
echo echo
echo "#### Vivaldi Browser installieren:" echo "#### Vivaldi Browser installieren:"
@@ -202,7 +246,6 @@ if question_answered_with_yes " ### Installiere Vivaldi? ###"; then
fi fi
echo echo
echo echo
echo "####Signal für Desktop (die Nutzung setzt eine Signal-Installation auf einem Android- Oder Apple-Gerät voraus!)#### " echo "####Signal für Desktop (die Nutzung setzt eine Signal-Installation auf einem Android- Oder Apple-Gerät voraus!)#### "
@@ -213,32 +256,17 @@ if question_answered_with_yes " ### Installiere Signal? ###"; then
## Linux distributions such as Ubuntu, Mint etc. ## Linux distributions such as Ubuntu, Mint etc.
## key importieren ## key importieren
" "
wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > /tmp/signal-desktop-keyring.gpg
cat signal-desktop-keyring.gpg | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null cat /tmp/signal-desktop-keyring.gpg | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
# #
echo "## Repository hinzufügen:" echo "## Repository hinzufügen:"
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | sudo tee /etc/apt/sources.list.d/signal-xenial.list echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | sudo tee /etc/apt/sources.list.d/signal-xenial.list
sudo apt update && sudo apt install signal-desktop sudo apt update && sudo apt install signal-desktop
# #
fi fi
echo
echo
echo "### Anpassung der Panel-Konfiguration / Taskleiste #### "
echo "### SystemMonitor, ArbeitsflächenAnzeige #### "
echo
echo "Achtung! Es kann vorkommen, dass die Taskleiste nach diesem Schritt verschwunden ist."
echo "Ein Abmelden und Wiederanmelden des Benutzers oder ein Reboot behebt das Problem."
echo
if question_answered_with_yes " ### Änderungen am Panel durchführen? ###"; then
echo "### ###"
sudo apt install xfce4-panel-profiles -y
echo "## Austausch der Panel-Konfigurationsdatei:"
xfce4-panel-profiles load xfce4-panel-profiles.tar.bz2
fi
echo echo
echo "###############################" echo "###############################"
echo "######### Skript ENDE #########" echo "######### Skript ENDE #########"
@@ -247,11 +275,12 @@ echo
echo echo
echo echo
echo "Verbleibende manuelle Schritte:" echo "Verbleibende manuelle Schritte:"
echo
if [ "$DESKTOP" = "xfce" ]; then
echo "### Taskleiste ###: XFCE-Applets für 2x Netzwerkmonitor (LAN + WLAN) konfigurieren" echo "### Taskleiste ###: XFCE-Applets für 2x Netzwerkmonitor (LAN + WLAN) konfigurieren"
echo
echo "Wenn ### Sensoren ### installiert wurden: psensor konfigurieren im XFCE-Applet in der Taskleiste, falls gewünscht." echo "Wenn ### Sensoren ### installiert wurden: psensor konfigurieren im XFCE-Applet in der Taskleiste, falls gewünscht."
echo fi
echo "Wenn ### Google-Schriften ### installiert wurden: Anpassung der Standardschriften und/oder das Erstellen der Ersetzungstabelle in Libre Office, falls gewünscht." echo "Wenn ### Google-Schriften ### installiert wurden: Anpassung der Standardschriften und/oder das Erstellen der Ersetzungstabelle in Libre Office, falls gewünscht."
echo echo
echo echo
+21 -5
View File
@@ -1,11 +1,25 @@
# Post-Installation Script # Post-Installation Script
This directory contains files belonging to the Linux Mint XFCE post-installation script. This directory contains files belonging to the Linux Mint post-installation scripts.
## Structure
```
post_installation_script/
├── Nachinstallationsarbeiten_LC_Esslingen.sh # Main script (asks for desktop)
├── xfce/
│ ├── xfce.sh # XFCE-specific configurations
│ └── xfce4-panel-profiles.tar.bz2 # XFCE panel backup
├── cinnamon/
│ └── cinnamon.sh # Cinnamon (reserved for future)
├── 01_prepare_release.sh
└── 02_finalise_release.sh
```
## Prerequisites to run the script ## Prerequisites to run the script
- Linux Mint XFCE installed and running - Linux Mint (XFCE or Cinnamon) installed and running
- Internet connection for downloading packages and updates - Internet connection for downloading packages and fonts
- Script file: `Nachinstallationsarbeiten_LC_Esslingen_XFCE.sh` copied to Desktop - Required tools: `curl`, `unzip`, `wget`, `fc-cache` (most are pre-installed)
No external files need to be pre-downloaded. No external files need to be pre-downloaded.
@@ -15,9 +29,11 @@ Run the main script:
```bash ```bash
cd post_installation_script cd post_installation_script
bash Nachinstallationsarbeiten_LC_Esslingen_XFCE.sh bash Nachinstallationsarbeiten_LC_Esslingen.sh
``` ```
The script will ask you to select your desktop environment (XFCE or Cinnamon), then proceed with the installation.
The script is interactive and will prompt for confirmation before each installation step. The script is interactive and will prompt for confirmation before each installation step.
## Testing ## Testing
+49
View File
@@ -0,0 +1,49 @@
#!/bin/bash
# Cinnamon-specific script - called by main script
# This file contains Cinnamon-specific configurations
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
CINNAMONDIR="$SCRIPT_DIR/cinnamon"
echo
echo
echo "### System Monitor Applet ###"
if question_answered_with_yes " ### System Monitor Applet in der Taskleiste installieren? ###"; then
echo "### System Monitor Applet wird installiert ###"
sudo apt-get install gir1.2-gtop-2.0 -y
wget -O /tmp/sysmonitor@orcus.zip "https://cinnamon-spices.linuxmint.com/files/applets/sysmonitor@orcus.zip"
unzip -o /tmp/sysmonitor@orcus.zip -d ~/.local/share/cinnamon/applets/
rm /tmp/sysmonitor@orcus.zip
CURRENT_APPLETS=$(gsettings get org.cinnamon enabled-applets)
echo "DEBUG: current enabled-applets = $CURRENT_APPLETS"
INSTANCE_ID=$(gsettings get org.cinnamon next-applet-id)
echo "DEBUG: ID for the new applet = $INSTANCE_ID"
echo "DEBUG: Adding sysmonitor to applets list..."
NEW_APPLET="panel1:right:13:sysmonitor@orcus:$INSTANCE_ID"
NEW_APPLETS=$(echo "$CURRENT_APPLETS" | sed "s/\\]$/, '$NEW_APPLET']/")
gsettings set org.cinnamon enabled-applets "$NEW_APPLETS"
echo "DEBUG: Checking updated current enabled-applets = $(gsettings get org.cinnamon enabled-applets)"
NEXT_ID=$((INSTANCE_ID + 1))
echo "DEBUG: Setting next-applet-id to $NEXT_ID..."
gsettings set org.cinnamon next-applet-id "$NEXT_ID"
echo "DEBUG: Checking updated next-applet-id = $(gsettings get org.cinnamon next-applet-id)"
echo "copy system monitor config file..."
mkdir -p ~/.config/cinnamon/spices/sysmonitor@orcus/
cp "$CINNAMONDIR/sysmonitor_settings.json" ~/.config/cinnamon/spices/sysmonitor@orcus/$INSTANCE_ID.json
if question_answered_with_yes " ### Falls System Monitor Applet in der Taskleiste nicht angezeigt wird: Cinnamon Desktop neu laden? ###"; then
echo "Dialog 'Sie befinden sich im Rückfallmodus' mit JA beantworten um Desktop neuzustarten"
pkill -HUP -f "cinnamon --replace"
else
echo "Falls die Taskleiste nicht aktualisiert wurde: Abmelden und wieder anmelden oder neu starten"
fi
echo ""
echo "Fertig! System Monitor Applet wurde installiert."
fi
@@ -0,0 +1,46 @@
[/]
enabled-applets=['panel1:left:0:menu@cinnamon.org:0', 'panel1:left:1:separator@cinnamon.org:1', 'panel1:left:2:grouped-window-list@cinnamon.org:2', 'panel1:right:1:systray@cinnamon.org:3', 'panel1:right:2:xapp-status@cinnamon.org:4', 'panel1:right:3:notifications@cinnamon.org:5', 'panel1:right:4:printers@cinnamon.org:6', 'panel1:right:5:removable-drives@cinnamon.org:7', 'panel1:right:6:keyboard@cinnamon.org:8', 'panel1:right:7:favorites@cinnamon.org:9', 'panel1:right:8:network@cinnamon.org:10', 'panel1:right:9:sound@cinnamon.org:11', 'panel1:right:10:power@cinnamon.org:12', 'panel1:right:11:calendar@cinnamon.org:13', 'panel1:right:12:cornerbar@cinnamon.org:14', 'panel1:right:13:sysmonitor@orcus:15']
next-applet-id=16
panel-edit-mode=false
panel-zone-symbolic-icon-sizes='[{"panelId": 1, "left": 28, "center": 28, "right": 16}]'
panels-height=['1:40']
[desktop/a11y/applications]
screen-reader-enabled=false
[desktop/a11y/mouse]
dwell-click-enabled=false
dwell-threshold=10
dwell-time=1.2
secondary-click-enabled=false
secondary-click-time=1.2
[desktop/input-sources]
sources=[('xkb', 'de')]
[desktop/interface]
toolkit-accessibility=false
[desktop/screensaver]
layout-group=0
[desktop/sound]
event-sounds=false
[gestures]
swipe-down-2='PUSH_TILE_DOWN::end'
swipe-down-3='TOGGLE_OVERVIEW::end'
swipe-down-4='VOLUME_DOWN::end'
swipe-left-2='PUSH_TILE_LEFT::end'
swipe-left-3='WORKSPACE_NEXT::end'
swipe-left-4='WINDOW_WORKSPACE_PREVIOUS::end'
swipe-right-2='PUSH_TILE_RIGHT::end'
swipe-right-3='WORKSPACE_PREVIOUS::end'
swipe-right-4='WINDOW_WORKSPACE_NEXT::end'
swipe-up-2='PUSH_TILE_UP::end'
swipe-up-3='TOGGLE_EXPO::end'
swipe-up-4='VOLUME_UP::end'
tap-3='MEDIA_PLAY_PAUSE::end'
[settings-daemon/plugins/color]
night-light-last-coordinates=(52.5, 13.366667)
@@ -0,0 +1,458 @@
{
"layout": {
"type": "layout",
"pages": [
"common",
"cpu",
"mem",
"swap",
"net",
"load"
],
"common": {
"type": "page",
"title": "Common",
"sections": [
"common_g",
"common_c"
]
},
"common_g": {
"type": "section",
"title": "General",
"keys": [
"onclick_program",
"smooth",
"draw_border",
"graph_width",
"graph_spacing",
"refresh_rate",
"use_padding",
"padding_lr",
"padding_tb"
]
},
"common_c": {
"type": "section",
"title": "Colors",
"keys": [
"bg_color",
"border_color"
]
},
"cpu": {
"type": "page",
"title": "CPU",
"sections": [
"cpu_g",
"cpu_c"
]
},
"cpu_g": {
"type": "section",
"title": "General",
"keys": [
"cpu_enabled",
"cpu_override_graph_width",
"cpu_graph_width",
"cpu_tooltip_decimals"
]
},
"cpu_c": {
"type": "section",
"title": "Colors",
"keys": [
"cpu_color_0",
"cpu_color_1",
"cpu_color_2",
"cpu_color_3"
]
},
"mem": {
"type": "page",
"title": "Memory",
"sections": [
"mem_g",
"mem_c"
]
},
"mem_g": {
"type": "section",
"title": "General",
"keys": [
"mem_enabled",
"mem_override_graph_width",
"mem_graph_width"
]
},
"mem_c": {
"type": "section",
"title": "Colors",
"keys": [
"mem_color_0",
"mem_color_1"
]
},
"swap": {
"type": "page",
"title": "Swap",
"sections": [
"swap_g",
"swap_c"
]
},
"swap_g": {
"type": "section",
"title": "General",
"keys": [
"swap_enabled",
"swap_override_graph_width",
"swap_graph_width"
]
},
"swap_c": {
"type": "section",
"title": "Colors",
"keys": [
"swap_color_0"
]
},
"net": {
"type": "page",
"title": "Network",
"sections": [
"net_g",
"net_c"
]
},
"net_g": {
"type": "section",
"title": "General",
"keys": [
"net_enabled",
"net_override_graph_width",
"net_graph_width",
"net_minimum_graph_scale"
]
},
"net_c": {
"type": "section",
"title": "Colors",
"keys": [
"net_color_0",
"net_color_1"
]
},
"load": {
"type": "page",
"title": "Load",
"sections": [
"load_g",
"load_c"
]
},
"load_g": {
"type": "section",
"title": "General",
"keys": [
"load_enabled",
"load_override_graph_width",
"load_graph_width"
]
},
"load_c": {
"type": "section",
"title": "Colors",
"keys": [
"load_color_0"
]
}
},
"onclick_program": {
"type": "entry",
"default": "gnome-system-monitor",
"description": "Program to launch on click",
"value": "gnome-system-monitor"
},
"smooth": {
"type": "switch",
"default": true,
"description": "Smooth graphs",
"value": true
},
"draw_border": {
"type": "switch",
"default": false,
"description": "Draw border",
"value": true
},
"graph_width": {
"type": "spinbutton",
"default": 40,
"min": 10,
"max": 1000,
"step": 1,
"description": "Common graph width",
"units": "pixels",
"tooltip": "If the applet is in a vertical panel, this sets the graph height. The graph width is then the panel width minus padding",
"value": 10.0
},
"graph_spacing": {
"type": "spinbutton",
"default": 3,
"min": -1,
"max": 100,
"step": 1,
"description": "Graph spacing",
"units": "pixels",
"tooltip": "The number of pixels between each graph. Can be set to -1 to allow single line borders between graphs if borders are enabled",
"value": 3
},
"refresh_rate": {
"type": "spinbutton",
"default": 1000,
"min": 100,
"max": 60000,
"step": 50,
"description": "Refresh rate",
"units": "ms",
"value": 1000
},
"use_padding": {
"type": "switch",
"default": false,
"description": "Use custom applet padding",
"value": false
},
"padding_lr": {
"type": "spinbutton",
"default": 1,
"min": 0,
"max": 100,
"step": 1,
"description": "Left/right padding",
"units": "pixels",
"dependency": "use_padding",
"value": 1
},
"padding_tb": {
"type": "spinbutton",
"default": 1,
"min": 0,
"max": 100,
"step": 1,
"description": "Top/bottom padding",
"units": "pixels",
"dependency": "use_padding",
"value": 1
},
"bg_color": {
"type": "colorchooser",
"default": "rgba(0,0,0,0)",
"description": "Background color",
"value": "rgba(0,0,0,0)"
},
"border_color": {
"type": "colorchooser",
"default": "rgb(128,128,128)",
"description": "Border color",
"value": "rgb(128,128,128)"
},
"cpu_enabled": {
"type": "switch",
"default": true,
"description": "Enable",
"value": true
},
"cpu_override_graph_width": {
"type": "switch",
"default": false,
"description": "Override graph width",
"value": false
},
"cpu_graph_width": {
"type": "spinbutton",
"default": 40,
"min": 10,
"max": 1000,
"step": 1,
"description": "Graph width",
"units": "pixels",
"dependency": "cpu_override_graph_width",
"value": 40
},
"cpu_tooltip_decimals": {
"type": "spinbutton",
"default": 0,
"min": 0,
"max": 10,
"step": 1,
"description": "Show this many decimals in the tooltip",
"units": "decimals",
"value": 0
},
"cpu_color_0": {
"type": "colorchooser",
"default": "rgb(252,233,79)",
"description": "User color",
"value": "rgb(252,233,79)"
},
"cpu_color_1": {
"type": "colorchooser",
"default": "rgb(252,175,62)",
"description": "Nice color",
"value": "rgb(252,175,62)"
},
"cpu_color_2": {
"type": "colorchooser",
"default": "rgb(239,41,41)",
"description": "Kernel color",
"value": "rgb(239,41,41)"
},
"cpu_color_3": {
"type": "colorchooser",
"default": "rgb(94,0,0)",
"description": "IOWait color",
"value": "rgb(94,0,0)"
},
"mem_enabled": {
"type": "switch",
"default": true,
"description": "Enable",
"value": true
},
"mem_override_graph_width": {
"type": "switch",
"default": false,
"description": "Override graph width",
"value": false
},
"mem_graph_width": {
"type": "spinbutton",
"default": 40,
"min": 10,
"max": 1000,
"step": 1,
"description": "Graph width",
"units": "pixels",
"dependency": "mem_override_graph_width",
"value": 40
},
"mem_color_0": {
"type": "colorchooser",
"default": "rgb(118,210,255)",
"description": "Used color",
"value": "rgb(118,210,255)"
},
"mem_color_1": {
"type": "colorchooser",
"default": "rgb(52,101,164)",
"description": "Cached color",
"value": "rgb(52,101,164)"
},
"swap_enabled": {
"type": "switch",
"default": true,
"description": "Enable",
"value": true
},
"swap_override_graph_width": {
"type": "switch",
"default": false,
"description": "Override graph width",
"value": false
},
"swap_graph_width": {
"type": "spinbutton",
"default": 40,
"min": 10,
"max": 1000,
"step": 1,
"description": "Graph width",
"units": "pixels",
"dependency": "swap_override_graph_width",
"value": 40
},
"swap_color_0": {
"type": "colorchooser",
"default": "rgb(114,159,207)",
"description": "Used color",
"value": "rgb(114,159,207)"
},
"net_enabled": {
"type": "switch",
"default": true,
"description": "Enable",
"value": true
},
"net_override_graph_width": {
"type": "switch",
"default": false,
"description": "Override graph width",
"value": false
},
"net_graph_width": {
"type": "spinbutton",
"default": 40,
"min": 10,
"max": 1000,
"step": 1,
"description": "Graph width",
"units": "pixels",
"dependency": "net_override_graph_width",
"value": 40
},
"net_minimum_graph_scale": {
"type": "spinbutton",
"default": 0,
"min": 0,
"max": 1000000,
"step": 10,
"description": "Minimum graph scale",
"units": "Mb/s",
"tooltip": "The minimum scale for the graph in Megabits per second.\nThe graph will not scale below this minimum, but it will automatically scale if the network speed exceeds this value.\n\nTo always automatically scale, set the value to 0.",
"value": 0
},
"net_color_0": {
"type": "colorchooser",
"default": "rgb(138,226,52)",
"description": "Download color",
"value": "rgb(138,226,52)"
},
"net_color_1": {
"type": "colorchooser",
"default": "rgb(239,41,41)",
"description": "Upload color",
"value": "rgb(239,41,41)"
},
"load_enabled": {
"type": "switch",
"default": true,
"description": "Enable",
"value": true
},
"load_override_graph_width": {
"type": "switch",
"default": false,
"description": "Override graph width",
"value": false
},
"load_graph_width": {
"type": "spinbutton",
"default": 40,
"min": 10,
"max": 1000,
"step": 1,
"description": "Graph width",
"units": "pixels",
"dependency": "load_override_graph_width",
"value": 40
},
"load_color_0": {
"type": "colorchooser",
"default": "rgb(204,0,0)",
"description": "Color",
"value": "rgb(204,0,0)"
},
"__md5__": "9911223138f00e8c746a460d9c0f715a"
}
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
# XFCE-specific script - called by main script
# This file contains XFCE-specific package installations and panel configuration
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
XFCEDIR="$SCRIPT_DIR/xfce"
echo "### XFCE-specific packages ###"
sudo apt -y install xfce4-goodies
echo
echo
echo "### Anpassung der Panel-Konfiguration / Taskleiste #### "
echo "### SystemMonitor, ArbeitsflächenAnzeige #### "
echo
echo "Achtung! Es kann vorkommen, dass die Taskleiste nach diesem Schritt verschwunden ist."
echo "Ein Abmelden und Wiederanmelden des Benutzers oder ein Reboot behebt das Problem."
echo
if question_answered_with_yes " ### Änderungen am Panel durchführen? ###"; then
echo "### ###"
sudo apt install xfce4-panel-profiles -y
echo "## Austausch der Panel-Konfigurationsdatei:"
xfce4-panel-profiles load "$XFCEDIR/xfce4-panel-profiles.tar.bz2"
if question_answered_with_yes " ### Falls System Monitor Applet in der Taskleiste nicht angezeigt wird: Desktop neu laden? ###"; then
xfce4-panel --restart
else
echo "Falls die Taskleiste nicht aktualisiert wurde: Abmelden und wieder anmelden oder neu starten"
fi
fi