add the app icon
6
PKGBUILD
|
@ -19,11 +19,13 @@ backup=()
|
|||
options=(!strip)
|
||||
source=("layout-switcher"
|
||||
"tromjaro-layout-switcher.desktop"
|
||||
"layout-switch.svg"
|
||||
"icons.zip::https://www.drive.tromsite.com/s/SWmAcokLcxLB3gM/download"
|
||||
"profiles.zip::https://www.drive.tromsite.com/s/6dHoNjar9wJzeLd/download")
|
||||
sha256sums=('SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP')
|
||||
package() {
|
||||
# copy icons
|
||||
|
@ -38,4 +40,8 @@ package() {
|
|||
# copy executables
|
||||
install -Dm644 ${srcdir}/tromjaro-layout-switcher.desktop ${pkgdir}/usr/share/applications/tromjaro-layout-switcher.desktop
|
||||
install -Dm755 ${srcdir}/layout-switcher ${pkgdir}/usr/bin/tromjaro-layout-switcher
|
||||
|
||||
# copy icon
|
||||
install -Dm644 ${srcdir}/layout-switch.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/layout-switch.svg
|
||||
install -Dm644 ${srcdir}/layout-switcher ${pkgdir}/usr/bin/tromjaro-layout-switcher
|
||||
}
|
||||
|
|
91
layout-switch.svg
Normal file
|
@ -0,0 +1,91 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="100%"
|
||||
height="100%"
|
||||
viewBox="0 0 2048 2048"
|
||||
version="1.1"
|
||||
xml:space="preserve"
|
||||
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"
|
||||
id="svg58"
|
||||
sodipodi:docname="layout-switch.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata
|
||||
id="metadata64"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs62" /><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1861"
|
||||
inkscape:window-height="1047"
|
||||
id="namedview60"
|
||||
showgrid="false"
|
||||
inkscape:zoom="0.12377822"
|
||||
inkscape:cx="-72.710695"
|
||||
inkscape:cy="1765.2541"
|
||||
inkscape:window-x="59"
|
||||
inkscape:window-y="33"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g4-3-7"
|
||||
inkscape:pagecheckerboard="0" />
|
||||
|
||||
|
||||
|
||||
<g
|
||||
transform="matrix(1.6081479,0,0,0.88930184,-803.44018,-297.30158)"
|
||||
id="g4-3-7"
|
||||
style="clip-rule:evenodd;fill:#f2f2f2;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5"><rect
|
||||
style="fill:#8398a7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:4.18102;stroke-linecap:square;paint-order:stroke markers fill"
|
||||
id="rect925"
|
||||
width="1170.233"
|
||||
height="1986.1685"
|
||||
x="555.36517"
|
||||
y="492.5831"
|
||||
ry="0" /><rect
|
||||
style="clip-rule:evenodd;fill:#363e44;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.63187;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;paint-order:stroke markers fill"
|
||||
id="rect925-3"
|
||||
width="1125.5874"
|
||||
height="314.56738"
|
||||
x="576.37885"
|
||||
y="548.55621"
|
||||
ry="2.1232858" /><rect
|
||||
style="clip-rule:evenodd;fill:#e6e6e6;fill-rule:evenodd;stroke:none;stroke-width:2.74957;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;paint-order:stroke markers fill"
|
||||
id="rect925-3-5"
|
||||
width="915.11932"
|
||||
height="1098.4377"
|
||||
x="687.33661"
|
||||
y="1070.0208"
|
||||
ry="7.4143009" /><rect
|
||||
style="clip-rule:evenodd;fill:#8398a7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.436731;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;paint-order:stroke markers fill"
|
||||
id="rect925-3-6"
|
||||
width="158.55617"
|
||||
height="159.94402"
|
||||
x="623.93262"
|
||||
y="626.22137"
|
||||
ry="1.0795997" /><rect
|
||||
style="clip-rule:evenodd;fill:#8398a7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.44918;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;paint-order:stroke markers fill"
|
||||
id="rect925-3-6-2"
|
||||
width="158.55617"
|
||||
height="169.19179"
|
||||
x="835.66113"
|
||||
y="623.29254"
|
||||
ry="1.1420208" /><rect
|
||||
style="clip-rule:evenodd;fill:#8398a7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.447925;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;paint-order:stroke markers fill"
|
||||
id="rect925-3-6-9"
|
||||
width="158.55617"
|
||||
height="168.24806"
|
||||
x="1062.8051"
|
||||
y="623.29254"
|
||||
ry="1.1356508" /></g></svg>
|
After Width: | Height: | Size: 3.7 KiB |
2485
pkg/tromjaro-layout-switcher/.BUILDINFO
Normal file
BIN
pkg/tromjaro-layout-switcher/.MTREE
Normal file
21
pkg/tromjaro-layout-switcher/.PKGINFO
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Generated by makepkg 6.0.1
|
||||
# using fakeroot version 1.29
|
||||
pkgname = tromjaro-layout-switcher
|
||||
pkgbase = tromjaro-layout-switcher
|
||||
pkgver = 1.2.0-1
|
||||
pkgdesc = TROMjaro Layout switcher application
|
||||
url =
|
||||
builddate = 1663636638
|
||||
packager = Unknown Packager
|
||||
size = 28596
|
||||
arch = any
|
||||
license = unknown
|
||||
provides = tromjaro-layout-switcher
|
||||
depend = yad
|
||||
depend = zensu
|
||||
depend = xfce4-panel-profiles
|
||||
depend = vala-panel-appmenu-xfce
|
||||
depend = vala-panel-appmenu-common
|
||||
depend = libdbusmenu-gtk2
|
||||
depend = appmenu-gtk-module
|
||||
optdepend = vala-panel-appmenu-registrar
|
|
@ -0,0 +1,65 @@
|
|||
#! /bin/bash
|
||||
data=/usr/share/tromjaro-layout-switcher
|
||||
icons=$data/icons
|
||||
profiles=$data/profiles
|
||||
enable-top-bar-integration() {
|
||||
# Enable global menus
|
||||
pacman -Qq vala-panel-appmenu-registrar ||
|
||||
zensu SKIP_AUTOSNAP= pacman -S --noconfirm vala-panel-appmenu-registrar ||
|
||||
{ notify-send 'Error' 'failed installing vala-panel-appmenu-registrar !\nmake sure you type the correct password\nEnabling the internet connection might solve the issue'; exit; }
|
||||
pacman -Qq vala-panel-appmenu-registrar || exit
|
||||
|
||||
# Hide window borders when maximized
|
||||
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
|
||||
# Hide top bar of windows when maximized
|
||||
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s true &
|
||||
# Put window buttons on left side
|
||||
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "CMH|" &
|
||||
}
|
||||
disable-top-bar-integration() {
|
||||
# Disable global menus
|
||||
! pacman -Qq vala-panel-appmenu-registrar ||
|
||||
zensu SKIP_AUTOSNAP= pacman -R --noconfirm vala-panel-appmenu-registrar ||
|
||||
{ notify-send 'Error' 'failed removing vala-panel-appmenu-registrar !\nmake sure you type the correct password'; exit; }
|
||||
pacman -Qq vala-panel-appmenu-registrar && exit
|
||||
killall appmenu-registrar &
|
||||
|
||||
# Hide window borders when maximized
|
||||
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
|
||||
# Don't hide top bar of windows when maximized
|
||||
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s false &
|
||||
# Put window buttons on right side
|
||||
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
|
||||
}
|
||||
choice=$(
|
||||
yad --no-buttons --center --keep-icon-size --separator='' --use-interp --title 'Layout Switcher' --text-align=center --text 'Changing to or from any layout that has global menus, will require your admin password' --form --columns 3 \
|
||||
--field=!"$icons/windows.png"!'Windows-Like':BTN "kill -USR1 \$YAD_PID; echo -n 'Windows-Like'" \
|
||||
--field=!"$icons/macos.png"!'MacOS-Like':BTN "kill -USR1 \$YAD_PID; echo -n 'MacOS-Like'" \
|
||||
--field=!"$icons/mx.png"!'MX-Like':BTN "kill -USR1 \$YAD_PID; echo -n 'MX-Like'" \
|
||||
--field=!"$icons/gnome.png"!'Gnome-Like':BTN "kill -USR1 \$YAD_PID; echo -n 'Gnome-Like'" \
|
||||
--field=!"$icons/unity.png"!'Unity-Like (default)':BTN "kill -USR1 \$YAD_PID; echo -n 'Unity-Like (default)'" \
|
||||
--field=!"$icons/topx.png"!'TopX-Like':BTN "kill -USR1 \$YAD_PID; echo -n 'TopX-Like'"
|
||||
)
|
||||
case "$choice" in
|
||||
'Windows-Like')
|
||||
disable-top-bar-integration
|
||||
xfce4-panel-profiles load "$profiles"/Windows-Like.tar.bz2 & ;;
|
||||
'Unity-Like (default)')
|
||||
enable-top-bar-integration
|
||||
xfce4-panel-profiles load "$profiles"/Unity-Like.tar.bz2 & ;;
|
||||
'MX-Like')
|
||||
disable-top-bar-integration
|
||||
xfce4-panel-profiles load "$profiles"/MX-Like.tar.bz2 & ;;
|
||||
'MacOS-Like')
|
||||
enable-top-bar-integration
|
||||
xfce4-panel-profiles load "$profiles"/MacOS-Like.tar.bz2 & ;;
|
||||
'Gnome-Like')
|
||||
disable-top-bar-integration
|
||||
xfce4-panel-profiles load "$profiles"/Gnome-Like.tar.bz2 & ;;
|
||||
'TopX-Like')
|
||||
disable-top-bar-integration
|
||||
xfce4-panel-profiles load "$profiles"/TopX-Like.tar.bz2 & ;;
|
||||
*) exit ;;
|
||||
esac
|
||||
|
||||
sleep 5 && notify-send "$choice layout was enabled"
|
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Version=1.1
|
||||
Type=Application
|
||||
Name=TROMjaro Layout Switcher
|
||||
GenericName=Layout Switcher
|
||||
Comment=Change how TROMjaro looks like. Make it look like Unity, Windows, Gnome, and so forth.
|
||||
Icon=layout-switch
|
||||
Exec=tromjaro-layout-switcher
|
||||
Categories=DesktopSettings;GTK;Settings;X-XFCE-PersonalSettings;X-XFCE-SettingsDialog;XFCE;
|
||||
Keywords=settings;layout;toggle;switch;
|
|
@ -0,0 +1,91 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="100%"
|
||||
height="100%"
|
||||
viewBox="0 0 2048 2048"
|
||||
version="1.1"
|
||||
xml:space="preserve"
|
||||
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"
|
||||
id="svg58"
|
||||
sodipodi:docname="layout-switch.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata
|
||||
id="metadata64"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs62" /><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1861"
|
||||
inkscape:window-height="1047"
|
||||
id="namedview60"
|
||||
showgrid="false"
|
||||
inkscape:zoom="0.12377822"
|
||||
inkscape:cx="-72.710695"
|
||||
inkscape:cy="1765.2541"
|
||||
inkscape:window-x="59"
|
||||
inkscape:window-y="33"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g4-3-7"
|
||||
inkscape:pagecheckerboard="0" />
|
||||
|
||||
|
||||
|
||||
<g
|
||||
transform="matrix(1.6081479,0,0,0.88930184,-803.44018,-297.30158)"
|
||||
id="g4-3-7"
|
||||
style="clip-rule:evenodd;fill:#f2f2f2;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5"><rect
|
||||
style="fill:#8398a7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:4.18102;stroke-linecap:square;paint-order:stroke markers fill"
|
||||
id="rect925"
|
||||
width="1170.233"
|
||||
height="1986.1685"
|
||||
x="555.36517"
|
||||
y="492.5831"
|
||||
ry="0" /><rect
|
||||
style="clip-rule:evenodd;fill:#363e44;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.63187;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;paint-order:stroke markers fill"
|
||||
id="rect925-3"
|
||||
width="1125.5874"
|
||||
height="314.56738"
|
||||
x="576.37885"
|
||||
y="548.55621"
|
||||
ry="2.1232858" /><rect
|
||||
style="clip-rule:evenodd;fill:#e6e6e6;fill-rule:evenodd;stroke:none;stroke-width:2.74957;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;paint-order:stroke markers fill"
|
||||
id="rect925-3-5"
|
||||
width="915.11932"
|
||||
height="1098.4377"
|
||||
x="687.33661"
|
||||
y="1070.0208"
|
||||
ry="7.4143009" /><rect
|
||||
style="clip-rule:evenodd;fill:#8398a7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.436731;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;paint-order:stroke markers fill"
|
||||
id="rect925-3-6"
|
||||
width="158.55617"
|
||||
height="159.94402"
|
||||
x="623.93262"
|
||||
y="626.22137"
|
||||
ry="1.0795997" /><rect
|
||||
style="clip-rule:evenodd;fill:#8398a7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.44918;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;paint-order:stroke markers fill"
|
||||
id="rect925-3-6-2"
|
||||
width="158.55617"
|
||||
height="169.19179"
|
||||
x="835.66113"
|
||||
y="623.29254"
|
||||
ry="1.1420208" /><rect
|
||||
style="clip-rule:evenodd;fill:#8398a7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.447925;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:1.5;paint-order:stroke markers fill"
|
||||
id="rect925-3-6-9"
|
||||
width="158.55617"
|
||||
height="168.24806"
|
||||
x="1062.8051"
|
||||
y="623.29254"
|
||||
ry="1.1356508" /></g></svg>
|
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.6 KiB |
BIN
profiles.zip
Normal file
1
src/icons.zip
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/tio/TROMjaro-Project/pkgbuild/layout-switcher-package/icons.zip
|
BIN
src/icons/gnome.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
src/icons/macos.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
src/icons/mx.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
src/icons/topx.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
src/icons/unity.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
src/icons/windows.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
1
src/layout-switch.svg
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/tio/TROMjaro-Project/pkgbuild/layout-switcher-package/layout-switch.svg
|
1
src/layout-switcher
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/tio/TROMjaro-Project/pkgbuild/layout-switcher-package/layout-switcher
|
1
src/profiles.zip
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/tio/TROMjaro-Project/pkgbuild/layout-switcher-package/profiles.zip
|
BIN
src/profiles/Gnome-Like.tar.bz2
Normal file
BIN
src/profiles/MX-Like.tar.bz2
Normal file
BIN
src/profiles/MacOS-Like.tar.bz2
Normal file
BIN
src/profiles/TopX-Like.tar.bz2
Normal file
BIN
src/profiles/Unity-Like.tar.bz2
Normal file
BIN
src/profiles/Windows-Like.tar.bz2
Normal file
1
src/tromjaro-layout-switcher.desktop
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/tio/TROMjaro-Project/pkgbuild/layout-switcher-package/tromjaro-layout-switcher.desktop
|