diff --git a/kometa-panel-desktop.spec b/kometa-panel-desktop.spec index f7e90f2..2827024 100644 --- a/kometa-panel-desktop.spec +++ b/kometa-panel-desktop.spec @@ -61,6 +61,7 @@ install -pm600 settingsprogdir %buildroot%skelprogdir/.directory install -pm755 brandicons.filetrigger %buildroot%ftdir install -pm755 previewplugins.filetrigger %buildroot%ftdir install -pm755 PlasmaFavorites.filetrigger %buildroot%ftdir +install -pm755 desktopbigicon.filetrigger %buildroot%ftdir install -pm644 kometa.list %buildroot%aptdir install -pm755 10-chromium-default-incognito.sh %buildroot%_sysconfdir/profile.d @@ -81,6 +82,7 @@ install -pm755 10-chromium-default-incognito.sh %buildroot%_sysconfdir/profile.d "/usr/lib/rpm/brandicons.filetrigger" "/usr/lib/rpm/previewplugins.filetrigger" "/usr/lib/rpm/PlasmaFavorites.filetrigger" +"/usr/lib/rpm/desktopbigicon.filetrigger" "/etc/apt/sources.list.d/kometa.list" "/etc/profile.d/10-chromium-default-incognito.sh" @@ -88,6 +90,7 @@ install -pm755 10-chromium-default-incognito.sh %buildroot%_sysconfdir/profile.d * Tue Mar 15 2022 Artem Proskurnev 1.12-kometa1 - Add power management - Add chromium, openboard, url meshlib -> desktop +- Trigger for big icons * Mon Mar 14 2022 Artem Proskurnev 1.11-kometa1 - Docs -> Программы, remove Trash from desktop diff --git a/kometa-panel-desktop/desktopbigicon.filetrigger b/kometa-panel-desktop/desktopbigicon.filetrigger new file mode 100644 index 0000000..6227af3 --- /dev/null +++ b/kometa-panel-desktop/desktopbigicon.filetrigger @@ -0,0 +1,30 @@ +#!/bin/sh +# +# RPM filetrigger for kde5 big icons. +# +# Copyright (C) 2021 Artem Proskurnev +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +mf='/usr/share/kf5/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml' +if egrep -qs $mf; +then + if [ -f $mf ]; + then + cat $mf > /tmp/main.xml + f="/tmp/main.xml" + g="/tmp/group.xml" + t="/tmp/tempmain.xml" + gstart=$(cat $f | grep -n "" | egrep -o "^[0-9]+") + awk "NR>=$gstart && NR<=$gend" $f > $g + awk "NR<$gstart" $f > $t + xmlstarlet edit -u "/group/entry[@name='iconSize']/default" -v "5" $g | awk "NR>1" >> $t + awk "NR>$gend" $f >> $t + mv -f $t $mf + rm -f $f $g $t + fi +fi