From 16298ec5132e7a5c056e5a226612ee403da71df4 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sun, 15 May 2022 18:50:21 +0200 Subject: [PATCH] upd --- bin/colorizer | 4 ++-- bin/colorizer-ob | 28 ++++++++++++++-------------- share/applications/colorizer.desktop | 12 ++++++++++++ 3 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 share/applications/colorizer.desktop diff --git a/bin/colorizer b/bin/colorizer index 5960240..19487f8 100755 --- a/bin/colorizer +++ b/bin/colorizer @@ -8,11 +8,11 @@ out+=("CONKY,^pipe(colorizer-conky)") #out+=("Systray HW monitor,^pipe(colorizer-phwmon)") out+=("Terminal color scheme,^term(theme.sh -i2;/bin/bash)") #out+=("GTKTHEME,^pipe(colorizer-gtktheme)") -out+=("^sep()") +out+=("^sep(OTHER_TOOLS)") out+=("WALLPAPER,^pipe(jgwallpaperchanger)") out+=("MBX Colors,mbxcolors") out+=("^sep()") -out+=("PREFERENCES") +#out+=("PREFERENCES") out+=("ABOUT and Help,yhtml /usr/share/mabox-colorizer/help/en.html 'Mabox Colorizer'") ### RUN diff --git a/bin/colorizer-ob b/bin/colorizer-ob index 54aea34..bc28487 100755 --- a/bin/colorizer-ob +++ b/bin/colorizer-ob @@ -67,7 +67,6 @@ getvalues () { getvalues out+=("^sep(Openbox theme: $OBTHEME)") -out+=("SELECT,^checkout(themes)") out+=("^sep(TITLEBAR)") out+=(" ACTIVEBG,^pipe(mbclr '$ABG' obtctl clractivebg ACTIVE_BG '$me')") out+=(" NORMALBG,^pipe(mbclr '$NBG' obtctl clrnormalbg NORMAL_BG '$me')") @@ -88,13 +87,13 @@ if [ -f "${THEMERC}.bak" ]; then out+=("RESET TO DEFAULTS,obtctl reset;$me") fi out+=("Edit...,xdg-open ${THEMERC}") -out2+=("^tag(themes)") -out2+=("^sep(themes)") -for i in $(ls $HOME/.themes);do - if [ -f "$HOME/.themes/${i}/openbox-3/themerc" ]; then - out2+=("$i,obtctl theme $i;$me") - fi -done +#out2+=("^tag(themes)") +#out2+=("^sep(themes)") +#for i in $(ls $HOME/.themes);do +# if [ -f "$HOME/.themes/${i}/openbox-3/themerc" ]; then +# out2+=("$i,obtctl theme $i;$me") +# fi +#done #TEXT out2+=("^tag(titletext)") out2+=("^sep(TITLE_BAR)") @@ -187,12 +186,13 @@ out2+=("8,obtctl handlewidth 8;$me") out2+=("10,obtctl handlewidth 10;$me") else -out+=("^sep(NOT WRITABLE)") -for i in $(ls $HOME/.themes);do -if [ -f "$HOME/.themes/${i}/openbox-3/themerc" ]; then -out+=("$i,obtctl theme $i;$me") -fi -done +out+=("^sep(NOT SUPORTED OB theme)") +out+=("Switch to MBcolors,obtctl theme MBcolors;$me") +#for i in $(ls $HOME/.themes);do +#if [ -f "$HOME/.themes/${i}/openbox-3/themerc" ]; then +#out+=("$i,obtctl theme $i;$me") +#fi +#done fi ### RUN diff --git a/share/applications/colorizer.desktop b/share/applications/colorizer.desktop new file mode 100644 index 0000000..e7296ae --- /dev/null +++ b/share/applications/colorizer.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Colorizer +Comment=Mabox Colorizer +Keywords= +StartupNotify=false +Icon=mbxcolors +TryExec=colorizer -s +Exec=colorizer -s +Categories=Settings; +#NoDisplay=true