Trigger big icon

master
Artem Proskurnev 3 years ago
parent 0cfed8b0dc
commit de4cc1f4f5
  1. 3
      kometa-panel-desktop.spec
  2. 30
      kometa-panel-desktop/desktopbigicon.filetrigger

@ -61,6 +61,7 @@ install -pm600 settingsprogdir %buildroot%skelprogdir/.directory
install -pm755 brandicons.filetrigger %buildroot%ftdir install -pm755 brandicons.filetrigger %buildroot%ftdir
install -pm755 previewplugins.filetrigger %buildroot%ftdir install -pm755 previewplugins.filetrigger %buildroot%ftdir
install -pm755 PlasmaFavorites.filetrigger %buildroot%ftdir install -pm755 PlasmaFavorites.filetrigger %buildroot%ftdir
install -pm755 desktopbigicon.filetrigger %buildroot%ftdir
install -pm644 kometa.list %buildroot%aptdir install -pm644 kometa.list %buildroot%aptdir
install -pm755 10-chromium-default-incognito.sh %buildroot%_sysconfdir/profile.d 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/brandicons.filetrigger"
"/usr/lib/rpm/previewplugins.filetrigger" "/usr/lib/rpm/previewplugins.filetrigger"
"/usr/lib/rpm/PlasmaFavorites.filetrigger" "/usr/lib/rpm/PlasmaFavorites.filetrigger"
"/usr/lib/rpm/desktopbigicon.filetrigger"
"/etc/apt/sources.list.d/kometa.list" "/etc/apt/sources.list.d/kometa.list"
"/etc/profile.d/10-chromium-default-incognito.sh" "/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 <tema@proskurnevs.ru> 1.12-kometa1 * Tue Mar 15 2022 Artem Proskurnev <tema@proskurnevs.ru> 1.12-kometa1
- Add power management - Add power management
- Add chromium, openboard, url meshlib -> desktop - Add chromium, openboard, url meshlib -> desktop
- Trigger for big icons
* Mon Mar 14 2022 Artem Proskurnev <tema@proskurnevs.ru> 1.11-kometa1 * Mon Mar 14 2022 Artem Proskurnev <tema@proskurnevs.ru> 1.11-kometa1
- Docs -> Программы, remove Trash from desktop - Docs -> Программы, remove Trash from desktop

@ -0,0 +1,30 @@
#!/bin/sh
#
# RPM filetrigger for kde5 big icons.
#
# Copyright (C) 2021 Artem Proskurnev <tema@proskurnevs.ru>
#
# 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 "<group" | egrep -o "^[0-9]+")
gend=$(cat $f | grep -n "</group>" | 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
Loading…
Cancel
Save