From 1e666bda5b629e1f3ce0c3267751a33b0fabcf02 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sun, 2 Jan 2022 14:32:22 +0800 Subject: [PATCH] + Window AppMenu Applet --- install/010-git.sh | 2 +- install/500-kde-appmenu.sh | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100755 install/500-kde-appmenu.sh diff --git a/install/010-git.sh b/install/010-git.sh index 56bdf37..d9cf19a 100755 --- a/install/010-git.sh +++ b/install/010-git.sh @@ -6,7 +6,7 @@ if installed 'git'; then [ ! -d "/usr/src/git" ] && sudo git clone https://github.com/git/git.git --depth=1 /usr/src/git sudo chown -R anthony: /usr/src/git cd /usr/src/git/ - sudo git pull + # sudo git pull sudo make prefix=/usr/local all sudo make prefix=/usr/local install else diff --git a/install/500-kde-appmenu.sh b/install/500-kde-appmenu.sh new file mode 100755 index 0000000..4275dfd --- /dev/null +++ b/install/500-kde-appmenu.sh @@ -0,0 +1,35 @@ +#!/bin/bash +. "../src/01-common.sh" || exit 5 +title "Installing Window AppMenu Applet..." + +# https://github.com/psifidotos/applet-window-appmenu/blob/master/INSTALLATION.md + +apti make \ + cmake \ + extra-cmake-modules \ + qtdeclarative5-dev \ + libkf5plasma-dev \ + libqt5x11extras5-dev \ + g++ \ + libsm-dev \ + libkf5configwidgets-dev \ + libkdecorations2-dev \ + libxcb-randr0-dev \ + libkf5wayland-dev \ + plasma-workspace-dev + +if installed 'git'; then + sudo rm -rf /usr/src/appmenu-applet + sudo git clone https://github.com/psifidotos/applet-window-appmenu.git --depth=1 /usr/src/appmenu-applet +else + sudo wget https://github.com/psifidotos/applet-window-appmenu/archive/master.zip -O /tmp/appmenu-applet.zip + sudo unzip /tmp/appmenu-applet.zip -d /usr/src/appmenu-applet + sudo mv /usr/src/appmenu-applet/applet-window-appmenu-master/* /usr/src/appmenu-applet/ + sudo mv /usr/src/appmenu-applet/applet-window-appmenu-master/.* /usr/src/appmenu-applet/ + sudo rm -rf /usr/src/appmenu-applet/applet-window-appmenu-master + sudo rm -f /usr/src/appmenu-applet.zip +fi +sudo chown -R anthony: /usr/src/appmenu-applet +cd /usr/src/appmenu-applet/ +sh ./install.sh +success 'Successful! Now you can add "Window AppMenu Applet" on desktop or panel'