try to fix rare icons glitches

master
Daniel Napora 2021-06-09 12:25:27 +02:00
parent 1fe1f8f05d
commit 7a632f51c2
3 changed files with 6 additions and 6 deletions

View File

@ -62,20 +62,20 @@ i="0"
while IFS= read -r line
do
name=$(basename $line .desk)
out+=(" ${name//_/ },^checkout(sess${i})")
out+=(" ${name//_/ },^checkout(sess${i})")
out2+=("^tag(sess${i})")
out2+=("^sep($RESTORE_TO)")
while IFS= read -r linia || [ -n "$linia" ];
do read -r ID dname< <(echo $linia)
dname=$(wmctrl -d | grep ^${ID} | cut -d' ' -f13-)
out2+=("\"\"\" ${dname/&/&amp;}\"\"\",deskmngr -r $name.desk $ID")
out2+=("\"\"\" ${dname/&/&amp;}\"\"\",deskmngr -r $name.desk $ID")
done < <(wmctrl -d|awk '{print $1}')
out2+=("^sep()" "  $EDIT <b>${name//_/ }</b>,geany $SESSIONDIR$name.desk")
out2+=("^sep()" "  $DELETE <b>${name//_/ }</b>,rm -f $SESSIONDIR$name.desk;$me")
((i=i+1))
done < <(deskmngr -l)
out+=("^sep()" " $OPEN_CNFDIR,pcmanfm ~/.config/deskmngr/")
out+=("^sep()" " $OPEN_CNFDIR,pcmanfm ~/.config/deskmngr/")
out+=("^sep(<i><small>$ADD</small></i>)")
out+=("  $NEW,deskmngr -s")

View File

@ -61,7 +61,7 @@ if [[ "$ID" = "$currdesk" ]]; then
out+=("^sep(<i><small>${dname/&/&amp;} ($ACTIVE)</small></i>)")
else
out+=("^sep(<i><small>${dname/&/&amp;}</small></i>)" " <i>$GOTO</i>,wmctrl -s $ID")
out+=("^sep(<i><small>${dname/&/&amp;}</small></i>)" " <i>$GOTO</i>,wmctrl -s $ID")
fi
while IFS= read -r line
do
@ -82,7 +82,7 @@ if [ $(wmctrl -l | awk $2 '!/-1/ {print $2}' | uniq |wc -l) -gt 0 ];then
for i in $(wmctrl -l | awk $2 '!/-1/ {print $2}' |sort| uniq)
do
dname=$(wmctrl -d | grep ^${i} | cut -d' ' -f13-)
out2+=(" $DESKTOP ${dname/&/&amp;},killwindows $i")
out2+=(" $DESKTOP ${dname/&/&amp;},killwindows $i")
done
out2+=("^sep()" "$ALL_DESK,killwindows all")
fi

View File

@ -25,7 +25,7 @@ CSVFILE="/usr/share/mabox/lang/${LNGDIR}/.config/mabox/mbhelper.csv"
### RUN
if [ $1 == "-s" ]; then
if [[ $1 = "-s" ]]; then
. /usr/bin/pipemenu-standalone.cfg
. $HOME/.config/mabox/mabox.conf
MENU_PADDING_TOP=$((jgtools_padding+24))