mabox-tools/bin/mb-regenerate-menu

16 lines
323 B
Bash
Executable File

#!/bin/bash
MENU=$HOME/.config/openbox/menu.xml
#Jeśli jest pipemenu to nic nie rób
if grep -q "item label" "$MENU";then
#Statyczne
if grep -q icon= "$MENU"; then
#Static menu with icons
obmenu-generator -s -i -c
else
#Static menu without icons:
obmenu-generator -s -c
fi
fi