From b84e36fd1cc3d297ee85ac11e7e52922c989e2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ruiz=20de=20Alegr=C3=ADa?= Date: Mon, 9 Jan 2023 15:46:07 +0100 Subject: [PATCH] Xfce: add custom kali panel layouts for xfce4-panel-profiles --- Makefile | 2 +- debian/kali-themes-common.dirs | 1 + xfce-panel-profiles/Kali Light/config.txt | 53 +++++++++++++++++++ xfce-panel-profiles/Kali Light/launcher-5 | 1 + xfce-panel-profiles/Kali Light/launcher-6 | 1 + xfce-panel-profiles/Kali Light/launcher-7 | 1 + .../Kali Light/whiskermenu-1.rc | 1 + xfce-panel-profiles/Kali/config.txt | 52 ++++++++++++++++++ .../Kali/launcher-5/16732569921.desktop | 12 +++++ .../Kali/launcher-6/16732569922.desktop | 15 ++++++ .../Kali/launcher-7/16732569923.desktop | 13 +++++ .../Kali/launcher-7/16732569924.desktop | 12 +++++ .../Kali/launcher-7/16732569925.desktop | 12 +++++ xfce-panel-profiles/Kali/whiskermenu-1.rc | 1 + xfce-panel-profiles/Makefile | 17 ++++++ 15 files changed, 193 insertions(+), 1 deletion(-) create mode 100644 debian/kali-themes-common.dirs create mode 100644 xfce-panel-profiles/Kali Light/config.txt create mode 120000 xfce-panel-profiles/Kali Light/launcher-5 create mode 120000 xfce-panel-profiles/Kali Light/launcher-6 create mode 120000 xfce-panel-profiles/Kali Light/launcher-7 create mode 120000 xfce-panel-profiles/Kali Light/whiskermenu-1.rc create mode 100644 xfce-panel-profiles/Kali/config.txt create mode 100644 xfce-panel-profiles/Kali/launcher-5/16732569921.desktop create mode 100644 xfce-panel-profiles/Kali/launcher-6/16732569922.desktop create mode 100644 xfce-panel-profiles/Kali/launcher-7/16732569923.desktop create mode 100644 xfce-panel-profiles/Kali/launcher-7/16732569924.desktop create mode 100644 xfce-panel-profiles/Kali/launcher-7/16732569925.desktop create mode 120000 xfce-panel-profiles/Kali/whiskermenu-1.rc create mode 100644 xfce-panel-profiles/Makefile diff --git a/Makefile b/Makefile index 4c1baf0f..53465e6d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -SUBDIRS=emblems kali-logos +SUBDIRS=emblems kali-logos xfce-panel-profiles DESKTOP_BACKGROUND=kali-layers LOGIN_BACKGROUND=kali-actiniaria diff --git a/debian/kali-themes-common.dirs b/debian/kali-themes-common.dirs new file mode 100644 index 00000000..34698b26 --- /dev/null +++ b/debian/kali-themes-common.dirs @@ -0,0 +1 @@ +/usr/share/xfce4-panel-profiles/layouts diff --git a/xfce-panel-profiles/Kali Light/config.txt b/xfce-panel-profiles/Kali Light/config.txt new file mode 100644 index 00000000..ab2f7e06 --- /dev/null +++ b/xfce-panel-profiles/Kali Light/config.txt @@ -0,0 +1,53 @@ +/configver 2 +/panels [<1>] +/panels/panel-1/icon-size uint32 22 +/panels/panel-1/length uint32 100 +/panels/panel-1/plugin-ids [<1>, <2>, <3>, <4>, <5>, <6>, <7>, <8>, <900>, <10>, <11>, <12>, <14>, <15>, <16>, <17>, <18>, <19>, <20>, <21>, <2200>] +/panels/panel-1/position 'p=6;x=0;y=0' +/panels/panel-1/position-locked true +/panels/panel-1/size uint32 28 +/plugins/plugin-1 'whiskermenu' +/plugins/plugin-10 'separator' +/plugins/plugin-11 'tasklist' +/plugins/plugin-11/grouping uint32 1 +/plugins/plugin-11/middle-click uint32 1 +/plugins/plugin-11/show-handle false +/plugins/plugin-11/show-labels false +/plugins/plugin-12 'separator' +/plugins/plugin-12/expand true +/plugins/plugin-12/style uint32 0 +/plugins/plugin-14 'systray' +/plugins/plugin-14/size-max uint32 22 +/plugins/plugin-14/square-icons true +/plugins/plugin-14/symbolic-icons true +/plugins/plugin-15 'genmon' +/plugins/plugin-16 'pulseaudio' +/plugins/plugin-16/enable-keyboard-shortcuts true +/plugins/plugin-17 'notification-plugin' +/plugins/plugin-18 'power-manager-plugin' +/plugins/plugin-19 'clock' +/plugins/plugin-19/digital-layout uint32 3 +/plugins/plugin-19/digital-time-font 'Cantarell 11' +/plugins/plugin-19/digital-time-format '%_H:%M' +/plugins/plugin-2 'separator' +/plugins/plugin-20 'separator' +/plugins/plugin-20/style uint32 0 +/plugins/plugin-21 'separator' +/plugins/plugin-2200 'actions' +/plugins/plugin-2200/appearance uint32 0 +/plugins/plugin-2200/items [<'-lock-screen'>, <'-switch-user'>, <'-separator'>, <'-suspend'>, <'-hibernate'>, <'-hybrid-sleep'>, <'-separator'>, <'-shutdown'>, <'-restart'>, <'-separator'>, <'+logout'>, <'-logout-dialog'>] +/plugins/plugin-3 'showdesktop' +/plugins/plugin-4 'directorymenu' +/plugins/plugin-4/base-directory '/home/kali' +/plugins/plugin-4/icon-name 'system-file-manager' +/plugins/plugin-5 'launcher' +/plugins/plugin-5/items [<'16732569921.desktop'>] +/plugins/plugin-6 'launcher' +/plugins/plugin-6/items [<'16732569922.desktop'>] +/plugins/plugin-7 'launcher' +/plugins/plugin-7/items [<'16732569923.desktop'>, <'16732569924.desktop'>, <'16732569925.desktop'>] +/plugins/plugin-7/move-first true +/plugins/plugin-8 'separator' +/plugins/plugin-900 'pager' +/plugins/plugin-900/miniature-view true +/plugins/plugin-900/rows uint32 2 diff --git a/xfce-panel-profiles/Kali Light/launcher-5 b/xfce-panel-profiles/Kali Light/launcher-5 new file mode 120000 index 00000000..086f94e4 --- /dev/null +++ b/xfce-panel-profiles/Kali Light/launcher-5 @@ -0,0 +1 @@ +../Kali/launcher-5 \ No newline at end of file diff --git a/xfce-panel-profiles/Kali Light/launcher-6 b/xfce-panel-profiles/Kali Light/launcher-6 new file mode 120000 index 00000000..aab62760 --- /dev/null +++ b/xfce-panel-profiles/Kali Light/launcher-6 @@ -0,0 +1 @@ +../Kali/launcher-6 \ No newline at end of file diff --git a/xfce-panel-profiles/Kali Light/launcher-7 b/xfce-panel-profiles/Kali Light/launcher-7 new file mode 120000 index 00000000..f690d5fe --- /dev/null +++ b/xfce-panel-profiles/Kali Light/launcher-7 @@ -0,0 +1 @@ +../Kali/launcher-7 \ No newline at end of file diff --git a/xfce-panel-profiles/Kali Light/whiskermenu-1.rc b/xfce-panel-profiles/Kali Light/whiskermenu-1.rc new file mode 120000 index 00000000..1fb28584 --- /dev/null +++ b/xfce-panel-profiles/Kali Light/whiskermenu-1.rc @@ -0,0 +1 @@ +../../etc/xdg/xfce4/whiskermenu/defaults.rc \ No newline at end of file diff --git a/xfce-panel-profiles/Kali/config.txt b/xfce-panel-profiles/Kali/config.txt new file mode 100644 index 00000000..a18f7cf1 --- /dev/null +++ b/xfce-panel-profiles/Kali/config.txt @@ -0,0 +1,52 @@ +/configver 2 +/panels [<1>] +/panels/panel-1/length uint32 100 +/panels/panel-1/plugin-ids [<1>, <2>, <3>, <4>, <5>, <6>, <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>, <17>, <18>, <19>, <20>, <21>, <22>] +/panels/panel-1/position 'p=6;x=0;y=0' +/panels/panel-1/position-locked true +/panels/panel-1/size uint32 34 +/plugins/plugin-1 'whiskermenu' +/plugins/plugin-10 'separator' +/plugins/plugin-11 'tasklist' +/plugins/plugin-11/grouping uint32 1 +/plugins/plugin-11/middle-click uint32 1 +/plugins/plugin-11/show-handle false +/plugins/plugin-11/show-labels false +/plugins/plugin-12 'separator' +/plugins/plugin-12/expand true +/plugins/plugin-12/style uint32 0 +/plugins/plugin-13 'cpugraph' +/plugins/plugin-14 'systray' +/plugins/plugin-14/size-max uint32 22 +/plugins/plugin-14/square-icons true +/plugins/plugin-14/symbolic-icons true +/plugins/plugin-15 'genmon' +/plugins/plugin-16 'pulseaudio' +/plugins/plugin-16/enable-keyboard-shortcuts true +/plugins/plugin-17 'notification-plugin' +/plugins/plugin-18 'power-manager-plugin' +/plugins/plugin-19 'clock' +/plugins/plugin-19/digital-layout uint32 3 +/plugins/plugin-19/digital-time-font 'Cantarell 11' +/plugins/plugin-19/digital-time-format '%_H:%M' +/plugins/plugin-2 'separator' +/plugins/plugin-20 'separator' +/plugins/plugin-20/style uint32 0 +/plugins/plugin-21 'separator' +/plugins/plugin-22 'actions' +/plugins/plugin-22/appearance uint32 0 +/plugins/plugin-22/items [<'+lock-screen'>, <'-switch-user'>, <'-separator'>, <'-suspend'>, <'-hibernate'>, <'-hybrid-sleep'>, <'-separator'>, <'-shutdown'>, <'-restart'>, <'-separator'>, <'+logout'>, <'-logout-dialog'>] +/plugins/plugin-3 'showdesktop' +/plugins/plugin-4 'directorymenu' +/plugins/plugin-4/base-directory '/home/kali' +/plugins/plugin-4/icon-name 'system-file-manager' +/plugins/plugin-5 'launcher' +/plugins/plugin-5/items [<'16732569921.desktop'>] +/plugins/plugin-6 'launcher' +/plugins/plugin-6/items [<'16732569922.desktop'>] +/plugins/plugin-7 'launcher' +/plugins/plugin-7/items [<'16732569923.desktop'>, <'16732569924.desktop'>, <'16732569925.desktop'>] +/plugins/plugin-7/move-first true +/plugins/plugin-8 'separator' +/plugins/plugin-9 'pager' +/plugins/plugin-9/miniature-view false diff --git a/xfce-panel-profiles/Kali/launcher-5/16732569921.desktop b/xfce-panel-profiles/Kali/launcher-5/16732569921.desktop new file mode 100644 index 00000000..e507150d --- /dev/null +++ b/xfce-panel-profiles/Kali/launcher-5/16732569921.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=Text Editor +Comment=Simple Text Editor +TryExec=mousepad +Exec=mousepad +Icon=accessories-text-editor +Terminal=false +StartupNotify=true +Type=Application +Categories=Utility;TextEditor; +OnlyShowIn=XFCE; +X-XFCE-Source=file:///usr/share/applications/xfce-text-editor.desktop diff --git a/xfce-panel-profiles/Kali/launcher-6/16732569922.desktop b/xfce-panel-profiles/Kali/launcher-6/16732569922.desktop new file mode 100644 index 00000000..93605d52 --- /dev/null +++ b/xfce-panel-profiles/Kali/launcher-6/16732569922.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Name=Firefox ESR +Comment=Browse the World Wide Web +GenericName=Web Browser +X-GNOME-FullName=Firefox ESR Web Browser +Exec=/usr/lib/firefox-esr/firefox-esr %u +Terminal=false +X-MultipleArgs=false +Type=Application +Icon=firefox-esr +Categories=Network;WebBrowser; +MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https; +StartupWMClass=Firefox-esr +StartupNotify=true +X-XFCE-Source=file:///usr/share/applications/firefox-esr.desktop diff --git a/xfce-panel-profiles/Kali/launcher-7/16732569923.desktop b/xfce-panel-profiles/Kali/launcher-7/16732569923.desktop new file mode 100644 index 00000000..5daa0c86 --- /dev/null +++ b/xfce-panel-profiles/Kali/launcher-7/16732569923.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Exec=exo-open --launch TerminalEmulator +Icon=org.xfce.terminalemulator +StartupNotify=true +Terminal=false +Categories=Utility;X-XFCE;X-Xfce-Toplevel; +OnlyShowIn=XFCE; +X-AppStream-Ignore=True +Name=Terminal Emulator +Comment=Use the command line +X-XFCE-Source=file:///usr/share/applications/xfce4-terminal-emulator.desktop diff --git a/xfce-panel-profiles/Kali/launcher-7/16732569924.desktop b/xfce-panel-profiles/Kali/launcher-7/16732569924.desktop new file mode 100644 index 00000000..91bf8381 --- /dev/null +++ b/xfce-panel-profiles/Kali/launcher-7/16732569924.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Root Terminal Emulator +Comment=Opens a terminal as the root user, using sudo to ask for the password +Exec=pkexec x-terminal-emulator +Icon=utilities-root-terminal +StartupNotify=false +Terminal=false +Type=Application +Categories=System;Utility;TerminalEmulator; +X-Kali-Package=kali-menu +X-XFCE-Source=file:///usr/share/applications/root-terminal.desktop diff --git a/xfce-panel-profiles/Kali/launcher-7/16732569925.desktop b/xfce-panel-profiles/Kali/launcher-7/16732569925.desktop new file mode 100644 index 00000000..3cb11655 --- /dev/null +++ b/xfce-panel-profiles/Kali/launcher-7/16732569925.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=PowerShell +Comment=PowerShell is an automation and configuration management platform +Encoding=UTF-8 +Exec=pwsh +Icon=kali-pwsh +StartupNotify=false +Terminal=true +Type=Application +Categories=System;Utility; +X-Kali-Package=powershell +X-XFCE-Source=file:///usr/share/applications/kali-pwsh.desktop diff --git a/xfce-panel-profiles/Kali/whiskermenu-1.rc b/xfce-panel-profiles/Kali/whiskermenu-1.rc new file mode 120000 index 00000000..1fb28584 --- /dev/null +++ b/xfce-panel-profiles/Kali/whiskermenu-1.rc @@ -0,0 +1 @@ +../../etc/xdg/xfce4/whiskermenu/defaults.rc \ No newline at end of file diff --git a/xfce-panel-profiles/Makefile b/xfce-panel-profiles/Makefile new file mode 100644 index 00000000..e46514f1 --- /dev/null +++ b/xfce-panel-profiles/Makefile @@ -0,0 +1,17 @@ +dir = usr/share/xfce4-panel-profiles/layouts +TAROPTS := --sort=name --format ustar + +.PHONY: build clean install + +build: + for layout in */; do \ + (cd "$${layout}" \ + && tar $(TAROPTS) -cvjhf "../$$(basename "$${layout}").tar.bz2" *;) \ + done + +clean: + rm -f *.tar.bz2 + +install: + install -d $(DESTDIR)/$(dir) + $(INSTALL_DATA) $(wildcard *.tar.bz2) $(DESTDIR)/$(dir)