Compare commits
19 Commits
Author | SHA1 | Date | |
---|---|---|---|
ef0491023f | |||
e1cabc24a3 | |||
4ded5ac5a2 | |||
dcee065c37 | |||
ca19fb7e34 | |||
56d8cd14fd | |||
7187cb23cc | |||
0b5fbbf53c | |||
dbd4386fb9 | |||
5e9786786d | |||
ca73dae896 | |||
03003d8056 | |||
89f905268f | |||
ca2dd9bc5d | |||
b1168d4552 | |||
3b545c0f7e | |||
da6b90b78d | |||
fbdfcc7efa | |||
e52e4c06b5 |
28
bin/cavactl
28
bin/cavactl
@ -67,11 +67,27 @@ sd ".*bar_spacing .*" "bar_spacing = ${1}" ${CFGFILE}
|
||||
reload_config
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
info () {
|
||||
case "$LANG" in
|
||||
pl*)
|
||||
INFO_HEAD="Porady dla Cava"
|
||||
INFO_TXT="\nCava jest uruchomiona w przezroczystym oknie...\n\
|
||||
Możesz je więc <b>przesuwać</b> lub <b>zmieniać rozmiar</b> tak jak każde inne okno\n\
|
||||
<i>Przesuwanie</i>: przytrzymaj <b>Alt</b> i przeciągnij\n\
|
||||
<i>Zmiana rozmiaru</i>: przytrzymaj <b>Alt</b> i przeciągnij prawym przyciskiem myszy\n\n \
|
||||
Użyj strzałek <b> </b>, aby zmienić szerokość słupków"
|
||||
;;
|
||||
*)
|
||||
INFO_HEAD="Cava tips & tricks"
|
||||
INFO_TXT="\nCava runs inside transparent window...\n\
|
||||
So you can <b>move</b> or <b>resize</b> it like any other window\n\
|
||||
<i>Move</i>: hold <b>Alt</b> and drag\n\
|
||||
<i>Resize</i>: hold <b>Alt</b> and drag with right mouse button\n\n \
|
||||
Use arrows <b> </b> to change bar width"
|
||||
;;
|
||||
esac
|
||||
notify-send.sh -i amarok_playcount -u critical "$INFO_HEAD" "$INFO_TXT"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
mode) mode "$2";;
|
||||
@ -85,6 +101,6 @@ case "$1" in
|
||||
reload_colors)reload_colors;;
|
||||
bar_width)bar_width "$2";;
|
||||
bar_spacing)bar_spacing "$2";;
|
||||
|
||||
info) info;;
|
||||
*):;;
|
||||
esac
|
||||
|
@ -7,6 +7,8 @@
|
||||
CNF_DIR="$HOME/.config/colorizer/conky"
|
||||
CNF_FILE="$CNF_DIR/conky.cfg"
|
||||
source <(grep = $CNF_FILE)
|
||||
PKGS=$(checkupdates | wc -l)
|
||||
mb-setvar updates=${PKGS}
|
||||
|
||||
case "$LANG" in
|
||||
pl*)
|
||||
@ -49,7 +51,7 @@ esac
|
||||
|
||||
|
||||
if [ -f /tmp/"$CONKYPID" ]; then
|
||||
PKGS=$(pamac checkupdates --no-aur -q| wc -l)
|
||||
PKGS=$(checkupdates | wc -l)
|
||||
if [ "$PKGS" != "0" ]; then
|
||||
if [[ "$update_notifications" == "true" ]];then
|
||||
notify-send.sh -u critical -i mbcc "$AVAIL_UPDATES" "$PKGS_TO_UPDATE $PKGS" -o "$YAY_UPD:terminator -T '$YAY_UPD' -e yay" \
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# colorizer - set of tools for Mabox (auto)theming
|
||||
# Copyright (C) 2022-2023 Daniel Napora <napcok@gmail.com>
|
||||
# Copyright (C) 2022-2024 Daniel Napora <napcok@gmail.com>
|
||||
#
|
||||
# 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
|
||||
@ -16,6 +16,8 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
. $HOME/.config/mabox/mabox.conf
|
||||
|
||||
CNF_DIR="$HOME/.config/colorizer"
|
||||
mkdir -p "$CNF_DIR"
|
||||
CNF_FILE="$CNF_DIR/colorizer.conf"
|
||||
@ -47,6 +49,7 @@ case "$LANG" in
|
||||
CURRENTCONF="Obecna konfiguracja"
|
||||
MODULES="Moduły"
|
||||
FONTS="Konfiguruj <b>Czcionki</b>"
|
||||
_PICOM="Ustawienia <b>Kompozytora (Picom)</b>"
|
||||
OBTHEME="Motyw <b>Openbox</b>"
|
||||
MENUPANELS="<b>Menu</b> i Panele boczne"
|
||||
COLORIZER_CONKY="<b>Conky</b> Manager i Colorizer"
|
||||
@ -101,6 +104,7 @@ case "$LANG" in
|
||||
RES_MENU="Menu i Paneli"
|
||||
RES_ALL="Wszystko <i>(OB, menu, conky)</i>"
|
||||
COLORIZE="Szybko Pokoloruj lub Resetuj..."
|
||||
_LEFTSIDEPANEL="Lewy panel boczny"
|
||||
;;
|
||||
*)
|
||||
REGENERATE="(Re)Generate from wallpaper colors..."
|
||||
@ -110,6 +114,7 @@ case "$LANG" in
|
||||
CURRENTCONF="Current configuration"
|
||||
MODULES="Modules"
|
||||
FONTS="Configure <b>Fonts</b>"
|
||||
_PICOM="<b>Compositor</b> settings <b>(Picom)</b>"
|
||||
OBTHEME="<b>Openbox</b> Theme"
|
||||
MENUPANELS="<b>Menus/SidePanels</b>"
|
||||
COLORIZER_CONKY="<b>Conky</b> Manager & Colorizer"
|
||||
@ -164,6 +169,7 @@ case "$LANG" in
|
||||
RES_MENU="Menus / Panels"
|
||||
RES_ALL="All <i>(OB, menus, conky)</i>"
|
||||
COLORIZE="Quickly Colorize or Reset..."
|
||||
_LEFTSIDEPANEL="Left Sidepanel"
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -181,7 +187,7 @@ fi
|
||||
|
||||
WALLPALDIR="$HOME/.cache/colorizer/palettes"
|
||||
mkdir -p "$WALLPALDIR"
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
|
||||
NAME=${WALLPATH////_}
|
||||
if [[ "${NAME}" =~ ^_home_.* ]]; then
|
||||
@ -211,10 +217,11 @@ out+=("^sep(Mabox Colorizer)")
|
||||
out+=(" $COLORIZE,^pipe(randomizer c)")
|
||||
out+=("^sep($MODULES)")
|
||||
out+=("<big></big> $FONTS,colorizer-fonts -s")
|
||||
out+=("$_PICOM,jgpicom-pipe -s")
|
||||
out+=("^sep()")
|
||||
out+=("$OBTHEME,colorizer-ob -s")
|
||||
|
||||
#out+=("TINT2,^pipe(colorizer-tint2)")
|
||||
#out+=("TINT2,colorizer-tint2 -s")
|
||||
out+=("$MENUPANELS,colorizer-menus -s")
|
||||
out+=("$COLORIZER_CONKY,colorizer-conky -s")
|
||||
out+=("^sep()")
|
||||
@ -242,18 +249,18 @@ out+=("$CAVA,colorizer-cava -s")
|
||||
out+=("^sep($RANDWALL)")
|
||||
syswallp=$(shopt -s nullglob ; set -- /usr/share/backgrounds/*.{jpg,JPG,jpeg,JPEG,png,PNG} ; echo $#)
|
||||
out+=(" $SYSWALLPAPER (<small>${syswallp}</small>),nitrogen --random /usr/share/backgrounds --set-scaled --save;colorizer -s")
|
||||
if [[ -d "${user_wallpapers_dir}" ]]; then
|
||||
userwallp=$(shopt -s nullglob ; set -- $user_wallpapers_dir/*.{jpg,JPG,jpeg,JPEG,png,PNG} ; echo $#)
|
||||
out+=(" $USERWALLPAPER (<small>${userwallp}</small>),nitrogen --random ${user_wallpapers_dir} --set-scaled --save;colorizer -s")
|
||||
fi
|
||||
out+=("^sep()")
|
||||
out+=("$WALLPAPERS,^checkout(wallpapersettings)")
|
||||
if [[ -d "${user_wallpapers_dir}" ]]; then
|
||||
userwallp=$(shopt -s nullglob ; set -- $user_wallpapers_dir/*.{jpg,JPG,jpeg,JPEG,png,PNG} ; echo $#)
|
||||
out+=(" $USERWALLPAPER (<small>${userwallp}</small>),nitrogen --random ${user_wallpapers_dir} --set-scaled --save;colorizer -s")
|
||||
fi
|
||||
out+=("^sep()")
|
||||
out+=("$WALLPAPERS,^checkout(wallpapersettings)")
|
||||
|
||||
if [[ "$gradient_obtheme" == "yes" || "$gradient_menu" == "yes" ]];then
|
||||
[[ "$gradient_obtheme" == "yes" ]] && OBGRAD="OB" || OBGRAD=""
|
||||
[[ "$gradient_menu" == "yes" ]] && MENUGRAD="menus" || MENUGRAD=""
|
||||
out+=("^sep($GRADIENTS <small>$OBGRAD $MENUGRAD</small>)")
|
||||
out+=("<tt><span bgcolor='#16a084'> </span><span bgcolor='#43a480'> </span><span bgcolor='#5da97b'> </span><span bgcolor='#72ad77'> </span><span bgcolor='#84b171'> </span><span bgcolor='#95b66c'> </span><span bgcolor='#a5ba66'> </span><span bgcolor='#b5be61'> </span><span bgcolor='#c3c15a'> </span><span bgcolor='#d1c753'> </span><span bgcolor='#dfc94c'> </span><span bgcolor='#edce44'> </span><span bgcolor='#f4d03f'> </span></tt> $PRE_GRADIENTS,^pipe(mbgrad)")
|
||||
[[ "$gradient_obtheme" == "yes" ]] && OBGRAD="OB" || OBGRAD=""
|
||||
[[ "$gradient_menu" == "yes" ]] && MENUGRAD="menus" || MENUGRAD=""
|
||||
out+=("^sep($GRADIENTS <small>$OBGRAD $MENUGRAD</small>)")
|
||||
out+=("<tt><span bgcolor='#16a084'> </span><span bgcolor='#43a480'> </span><span bgcolor='#5da97b'> </span><span bgcolor='#72ad77'> </span><span bgcolor='#84b171'> </span><span bgcolor='#95b66c'> </span><span bgcolor='#a5ba66'> </span><span bgcolor='#b5be61'> </span><span bgcolor='#c3c15a'> </span><span bgcolor='#d1c753'> </span><span bgcolor='#dfc94c'> </span><span bgcolor='#edce44'> </span><span bgcolor='#f4d03f'> </span></tt> $PRE_GRADIENTS,^pipe(mbgrad)")
|
||||
fi
|
||||
|
||||
out+=("^sep($SETTINGS)")
|
||||
@ -264,6 +271,9 @@ out+=(" $HELP,yhtml /usr/share/mabox-colorizer/help/$LNG.html 'Mabox Coloriz
|
||||
else
|
||||
out+=(" $HELP,yhtml /usr/share/mabox-colorizer/help/en.html 'Mabox Colorizer'")
|
||||
fi
|
||||
out+=("^sep()")
|
||||
out+=(" ${arrow_string_left} ${arrow_string_left} $_LEFTSIDEPANEL,mb-jgtools places")
|
||||
|
||||
|
||||
### RESET ACTIONS (replaced by Randomizer)
|
||||
#out+=("^sep($RESET_COLORS)")
|
||||
|
@ -25,7 +25,7 @@ CFGFILE=~/.config/cava/config
|
||||
# get wallpaper color palette
|
||||
WALLPALDIR="$HOME/.cache/colorizer/palettes"
|
||||
mkdir -p "$WALLPALDIR"
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
|
||||
NAME=${WALLPATH////_}
|
||||
if [[ "${NAME}" =~ ^_home_.* ]]; then
|
||||
@ -44,12 +44,6 @@ fi
|
||||
case "$LANG" in
|
||||
pl*)
|
||||
INFO="Cava porady"
|
||||
INFO_HEAD="Porady dla Cava"
|
||||
INFO_TXT="\n1. Cava jest uruchomiona w przezroczystym oknie...\n \
|
||||
Możesz je więc <b>przesuwać</b> lub <b>zmieniać rozmiar</b> tak jak każde inne okno\n \
|
||||
<i>Przesuwanie</i>: przytrzymaj <b>Alt</b> i przeciągnij\n \
|
||||
<i>Zmiana rozmiaru</i>: przytrzymaj <b>Alt</b> i przeciągnij prawym przyciskiem myszy\n\n \
|
||||
2. Użyj strzałek <b> </b>, aby zmienić szerokość słupków"
|
||||
COLORIZE_CAVA="Pokoloruj Cava"
|
||||
COLOR="Jednolity kolor"
|
||||
REVERSE_GRADIENT="Odwróć kolory gradientu"
|
||||
@ -74,12 +68,6 @@ Możesz je więc <b>przesuwać</b> lub <b>zmieniać rozmiar</b> tak jak każde i
|
||||
;;
|
||||
*)
|
||||
INFO="CaVa tips & tricks"
|
||||
INFO_HEAD="Cava tips & tricks"
|
||||
INFO_TXT="\n1. Cava runs inside transparent window...\n \
|
||||
So you can <b>move</b> or <b>resize</b> it like any other window\n \
|
||||
<i>Move</i>: hold <b>Alt</b> and drag\n \
|
||||
<i>Resize</i>: hold <b>Alt</b> and drag with right mouse button\n\n \
|
||||
2. Use arrows <b> </b> to change bar width"
|
||||
COLORIZE_CAVA="Colorize Cava"
|
||||
COLOR="Solid Color"
|
||||
REVERSE_GRADIENT="Reverse gradient's colors"
|
||||
@ -157,7 +145,7 @@ FGT=$(pastel textcolor ${FGC}|pastel format hex)
|
||||
out+=(" $RELOAD,cavactl reload;$me")
|
||||
out+=(" $RELOAD_COLORS,cavactl reload_colors;$me")
|
||||
out+=("^sep()")
|
||||
out+=(" $INFO,notify-send.sh -i music -u critical '$INFO_HEAD' '$INFO_TXT'")
|
||||
out+=(" $INFO,cavactl info")
|
||||
|
||||
|
||||
### RUN
|
||||
@ -193,7 +181,7 @@ if [[ "$1" == "-s" ]]; then
|
||||
MENU_PADDING_TOP=$((jgtools_padding + 150))
|
||||
|
||||
#WALLPAPER
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
THUMBDIR="$HOME/.cache/colorizer/thumbs"
|
||||
mkdir -p ${THUMBDIR}
|
||||
NAME=${WALLPATH////_}
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# colorizer - set of tools for Mabox (auto)theming
|
||||
# Copyright (C) 2022-2023 Daniel Napora <napcok@gmail.com>
|
||||
# Copyright (C) 2022-2024 Daniel Napora <napcok@gmail.com>
|
||||
#
|
||||
# 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
|
||||
@ -53,7 +53,7 @@ fi
|
||||
### Wallpaper colors
|
||||
WALLPALDIR="$HOME/.cache/colorizer/palettes"
|
||||
mkdir -p "$WALLPALDIR"
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
NAME=${WALLPATH////_}
|
||||
if [[ "${NAME}" =~ ^_home_.* ]]; then
|
||||
n=${#HOME}
|
||||
@ -85,6 +85,8 @@ case "$LANG" in
|
||||
APPLY_SCHEME="Zastosuj"
|
||||
DELETE="Usuń"
|
||||
DELETE_SCHEME="Usuń schemat kolorów"
|
||||
MONOCHROMATIC="Monochromatyczny"
|
||||
CHOOSE_AND_PICK="Wybierz wariant i pobierz kolor..."
|
||||
GENERATEFROMWP="Generuj z kolorów tapety"
|
||||
LIGHTBG="Jasne tło"
|
||||
DARKBG="Ciemne tło"
|
||||
@ -115,13 +117,14 @@ case "$LANG" in
|
||||
RUNNING_CONKIES="Uruchomione Conky"
|
||||
STOP_ALL="Zatrzymaj wszystkie"
|
||||
MORECONKIES="Więcej Conky..."
|
||||
CLICKTOSTART="Kliknij aby uruchomić"
|
||||
CLICKTOSTART="<b>Uruchom</b> więcej Conky..."
|
||||
STARTALL="Uruchom wszystkie"
|
||||
RESET="Resetuj"
|
||||
RESETALL="Resetuj wszystkie"
|
||||
RESETCOLORS="Przywróć domyślne kolory"
|
||||
AREYOUSURE="Czy aby napewno?"
|
||||
_COLORIZER_ROOT="<b>Colorizer</b> - menu główne"
|
||||
_LEFTSIDEPANEL="Lewy panel boczny"
|
||||
;;
|
||||
*)
|
||||
COLORIZECONKY="Conky Manager"
|
||||
@ -140,6 +143,8 @@ case "$LANG" in
|
||||
APPLY_SCHEME="Apply colorscheme"
|
||||
DELETE="Delete"
|
||||
DELETE_SCHEME="Delete colorscheme"
|
||||
MONOCHROMATIC="Monochromatic"
|
||||
CHOOSE_AND_PICK="Choose variant and pick color..."
|
||||
GENERATEFROMWP="Generate from wallpaper colors"
|
||||
LIGHTBG="Light Background"
|
||||
DARKBG="Dark Background"
|
||||
@ -170,13 +175,14 @@ case "$LANG" in
|
||||
RUNNING_CONKIES="Running Conkys"
|
||||
STOP_ALL="Stop All"
|
||||
MORECONKIES="More Conkies Available"
|
||||
CLICKTOSTART="...click to start"
|
||||
CLICKTOSTART="<b>Start</b> more Conkies..."
|
||||
STARTALL="Start all"
|
||||
RESET="Reset"
|
||||
RESETALL="Reset all to defaults"
|
||||
RESETCOLORS="Restore default colors"
|
||||
AREYOUSURE="Are you sure?"
|
||||
_COLORIZER_ROOT="<b>Colorizer</b> rootmenu"
|
||||
_LEFTSIDEPANEL="Left Sidepanel"
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -284,6 +290,8 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
|
||||
else # too many conkies not started -> show them in submenu
|
||||
out+=("$CLICKTOSTART (${#notstarted[@]}),^checkout(nstarted)")
|
||||
out2+=("^tag(nstarted)")
|
||||
out2+=("^sep($CLICKTOSTART)")
|
||||
|
||||
for c in ${notstarted[@]};do
|
||||
filename=${c##*/}
|
||||
name=${filename%%_mb*}
|
||||
@ -319,6 +327,15 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
|
||||
out+=("<big><span bgcolor='$WINCLR' bgalpha='${bga}%'> <span fgcolor='$CLR'></span> <span fgcolor='$CLR0'></span> <span fgcolor='$CLR1'></span> <span fgcolor='$CLR2'></span> </span></big> $REGENERATE,^checkout(regenconky)")
|
||||
out2+=("^tag(regenconky)")
|
||||
out2+=("^sep($REGENERATE)")
|
||||
out2+=("^sep($MONOCHROMATIC)")
|
||||
out2+=("^sep(<i>$CHOOSE_AND_PICK</i>)")
|
||||
out2+=("<big></big> $DARKBG...,conkyctl mono pick dark")
|
||||
out2+=("<big></big> $LIGHTBG...,conkyctl mono pick light")
|
||||
|
||||
out2+=("^sep($GENERATEFROMWP)")
|
||||
out2+=("<big><span bgcolor='${w[-1]}' fgcolor='${w[0]}'> $LIGHTBG <span fgcolor='${w[4]}'></span> <span fgcolor='${w[5]}'></span> </span></big>,w2theme conky light;$me")
|
||||
out2+=("<big><span bgcolor='${w[0]}' fgcolor='${w[-1]}'> $DARKBG <span fgcolor='${w[-4]}'></span> <span fgcolor='${w[-5]}'></span> </span></big>,w2theme conky dark;$me")
|
||||
|
||||
out2+=("^sep($SYSTEM_SCHEMES)")
|
||||
n=1
|
||||
while IFS="|" read -r winclr clr clr0 clr1 clr2 wintrans outline shades bord stip scheme_name
|
||||
@ -348,9 +365,7 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
|
||||
done < <(tail -n +2 "$USERSCHEMES")
|
||||
|
||||
|
||||
out2+=("^sep($GENERATEFROMWP)")
|
||||
out2+=("<big><span bgcolor='${w[-1]}' fgcolor='${w[0]}'> $LIGHTBG <span fgcolor='${w[4]}'></span> <span fgcolor='${w[5]}'></span> </span></big>,w2theme conky light;$me")
|
||||
out2+=("<big><span bgcolor='${w[0]}' fgcolor='${w[-1]}'> $DARKBG <span fgcolor='${w[-4]}'></span> <span fgcolor='${w[-5]}'></span> </span></big>,w2theme conky dark;$me")
|
||||
|
||||
|
||||
out+=("^sep()")
|
||||
|
||||
@ -466,6 +481,7 @@ if [[ "$1" == "-s" ]]; then
|
||||
|
||||
out+=("^sep()")
|
||||
out+=(" ${arrow_string_left} $_COLORIZER_ROOT,colorizer -s")
|
||||
out+=(" ${arrow_string_left} ${arrow_string_left} $_LEFTSIDEPANEL,mb-jgtools places")
|
||||
|
||||
if [[ "$colorizer_size" == "full" ]];then
|
||||
eval $(xdotool getdisplaygeometry --shell)
|
||||
@ -487,7 +503,7 @@ if [[ "$1" == "-s" ]]; then
|
||||
MENU_PADDING_TOP=$((jgtools_padding + 150))
|
||||
|
||||
#WALLPAPER
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
THUMBDIR="$HOME/.cache/colorizer/thumbs"
|
||||
mkdir -p ${THUMBDIR}
|
||||
NAME=${WALLPATH////_}
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# colorizer - set of tools for Mabox (auto)theming
|
||||
# Copyright (C) 2022-2023 Daniel Napora <napcok@gmail.com>
|
||||
# Copyright (C) 2022-2024 Daniel Napora <napcok@gmail.com>
|
||||
#
|
||||
# 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
|
||||
@ -70,6 +70,7 @@ case "$LANG" in
|
||||
_USE="Użyj czcionki"
|
||||
_FOR="dla..."
|
||||
_COLORIZER_ROOT="<b>Colorizer</b> - menu główne"
|
||||
_LEFTSIDEPANEL="Lewy panel boczny"
|
||||
;;
|
||||
*)
|
||||
_INCREASE_ALL="Increase all"
|
||||
@ -107,6 +108,7 @@ case "$LANG" in
|
||||
_USE="Use"
|
||||
_FOR="font for ..."
|
||||
_COLORIZER_ROOT="<b>Colorizer</b> rootmenu"
|
||||
_LEFTSIDEPANEL="Left Sidepanel"
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -350,6 +352,7 @@ if [[ "$1" == "-s" ]]; then
|
||||
|
||||
out+=("^sep()")
|
||||
out+=(" ${arrow_string_left} $_COLORIZER_ROOT,colorizer -s")
|
||||
out+=(" ${arrow_string_left} ${arrow_string_left} $_LEFTSIDEPANEL,mb-jgtools places")
|
||||
|
||||
if [[ "$colorizer_size" == "full" ]];then
|
||||
eval $(xdotool getdisplaygeometry --shell)
|
||||
@ -372,7 +375,7 @@ if [[ "$1" == "-s" ]]; then
|
||||
MENU_PADDING_TOP=$((jgtools_padding + 150))
|
||||
|
||||
#WALLPAPER
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
THUMBDIR="$HOME/.cache/colorizer/thumbs"
|
||||
mkdir -p ${THUMBDIR}
|
||||
NAME=${WALLPATH////_}
|
||||
|
@ -19,13 +19,13 @@
|
||||
|
||||
|
||||
SYSSCHEMES="/usr/share/mabox-colorizer/colorschemes/menus.csv"
|
||||
USERSCHEMES="$HOME/.config/colorizer/menus/userschemes.csv"
|
||||
USERSCHEMES="$HOME/.config/colorizer/menus/userschemes2.csv"
|
||||
|
||||
|
||||
### Wallpaper colors
|
||||
WALLPALDIR="$HOME/.cache/colorizer/palettes"
|
||||
mkdir -p "$WALLPALDIR"
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
NAME=${WALLPATH////_}
|
||||
if [[ "${NAME}" =~ ^_home_.* ]]; then
|
||||
n=${#HOME}
|
||||
@ -89,6 +89,8 @@ case "$LANG" in
|
||||
WIDE="szerokie"
|
||||
NORMAL="normalne"
|
||||
TIGHT="wąskie"
|
||||
MONOCHROMATIC="Monochromatyczny"
|
||||
CHOOSE_AND_PICK="Wybierz wariant i pobierz kolor..."
|
||||
GENERATEFROMWP="<i>Generuj z kolorów tapety...</i>"
|
||||
LIGHTBG="Jasne tło"
|
||||
DARKBG="Ciemne tło"
|
||||
@ -145,6 +147,7 @@ case "$LANG" in
|
||||
FILE="plik"
|
||||
SET_RANDOM="Ustaw losowy motyw menu"
|
||||
_COLORIZER_ROOT="<b>Colorizer</b> - menu główne"
|
||||
_LEFTSIDEPANEL="Lewy panel boczny"
|
||||
;;
|
||||
*)
|
||||
MENU_THEME="Menu theme"
|
||||
@ -171,6 +174,8 @@ case "$LANG" in
|
||||
WIDE="wide"
|
||||
NORMAL="normal"
|
||||
TIGHT="tight"
|
||||
MONOCHROMATIC="Monochromatic"
|
||||
CHOOSE_AND_PICK="Choose variant and pick color..."
|
||||
GENERATEFROMWP="<i>Generate from wallpaper colors...</i>"
|
||||
LIGHTBG="Light Background"
|
||||
DARKBG="Dark Background"
|
||||
@ -227,6 +232,7 @@ case "$LANG" in
|
||||
FILE="file"
|
||||
SET_RANDOM="Set random menu theme"
|
||||
_COLORIZER_ROOT="<b>Colorizer</b> rootmenu"
|
||||
_LEFTSIDEPANEL="Left Sidepanel"
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -245,6 +251,7 @@ getvalues () {
|
||||
read TFG TFGA<<< "$(grep 'color_title_fg' ${THEMERC} | cut -d'=' -f2)"
|
||||
read TBORDER TBORDERA<<< "$(grep 'color_title_border' ${THEMERC} | cut -d'=' -f2)"
|
||||
read NORMBG NORMBGA<<< "$(grep color_norm_bg ${THEMERC} | cut -d'=' -f2)"
|
||||
[[ "$NORMBG" == "" ]] && NORMBG="${MBG}" NORMBGA=0
|
||||
read NFG NFGA<<< "$(grep color_norm_fg ${THEMERC} | cut -d'=' -f2)"
|
||||
read SBG SBGA<<< "$(grep 'color_sel_bg' ${THEMERC} | cut -d'=' -f2)"
|
||||
read SFG SFGA<<< "$(grep 'color_sel_fg' ${THEMERC} | cut -d'=' -f2)"
|
||||
@ -255,190 +262,193 @@ getvalues () {
|
||||
getvalues
|
||||
|
||||
# Current colors
|
||||
currcolors="${MBG}|${MBGT}|${MBORDER}|${TBG}|${TFG}|${TBORDER}|${NORMBG}|${NFG}|${SBG}|${SFG}|${SBORDER}|${SEPFG}|${GRADIENT}|"
|
||||
currcolors="${MBG}|${MBGA}|${MBGT}|${MBGTA}|${MBORDER}|${MBORDERA}|${TBG}|${TBGA}|${TFG}|${TFGA}|${TBORDER}|${TBORDERA}|${NORMBG}|${NORMBGA}|${NFG}|${NFGA}|${SBG}|${SBGA}|${SFG}|${SFGA}|${SBORDER}|${SBORDERA}|${SEPFG}|${SEPFGA}|${jgtools_border}|${jgtools_radius}|${jgtools_padding}|${submenu_spacing}|${IBORDER}|${IRADIUS}|${arrow_string}|${arrow_string_left}|${SEPHALIGN}|${GRADIENT}|"
|
||||
#echo "${currcolors}" > ~/.config/mabox/.menu_colors
|
||||
###notify-send.sh "Currcolors" "${currcolors}"
|
||||
if [ ! -f "$USERSCHEMES" ]; then
|
||||
mkdir -p "$HOME/.config/colorizer/menus/"
|
||||
echo " MBG | MBGT |MBORDER| TBG | TFG |TBORDER|NORMBG | NFG | SBG | SFG |SBORDER| SEPFG |GRADIENT|scheme_name" > "$USERSCHEMES"
|
||||
mkdir -p "$HOME/.config/colorizer/menus/"
|
||||
echo " MBG |opa| MBGT |opa|MBORDER|opa| TBG |opa| TFG |opa|TBORDER|opa|NORMBG |opa| NFG |opa| SBG |opa| SFG |opa|SBORDER|opa| SEPFG |opa|B|R|P|SS|IB|IR|A|AL|SEPHAL|GRADIENT|scheme_name" > "$USERSCHEMES"
|
||||
fi
|
||||
|
||||
out+=("^sep($MENU_THEME: <i>${jgmenu_theme}</i>)")
|
||||
out+=("<big></big> $QUICK_TWEAKS,^checkout(tweaks)")
|
||||
|
||||
out2+=("^tag(tweaks)")
|
||||
out2+=("^sep($OVERALL_STYLE)")
|
||||
######
|
||||
out2+=("$BORDER [ <b>${jgtools_border:-0}px</b> ],^checkout(mborder)")
|
||||
out2+=("$PADDING [ <b>${jgtools_padding:-0}px</b> ],^checkout(mpadding)")
|
||||
#out2+=("$RADIUS [ <b>${jgtools_radius:-0}</b> ],^checkout(mradius)")
|
||||
out2+=("$SUBSPACING [ <b>${submenu_spacing:-0}px</b> ],^checkout(subspacing)")
|
||||
out2+=("^sep()")
|
||||
out2+=("$LINE_HEIGHT [ <b>$item_height_factor%</b> ],^checkout(lineheight)")
|
||||
out2+=("^sep()")
|
||||
out2+=("$ARROW_STRING [ <b>$arrow_string</b> ],^checkout(arrow)")
|
||||
out2+=("$ARROW_STRING_LEFT [ <b>$arrow_string_left</b> ],^checkout(arrowleft)")
|
||||
out2+=("^tag(tweaks)")
|
||||
out2+=("^sep($OVERALL_STYLE)")
|
||||
######
|
||||
out2+=("$BORDER [ <b>${jgtools_border:-0}px</b> ],^checkout(mborder)")
|
||||
out2+=("$PADDING [ <b>${jgtools_padding:-0}px</b> ],^checkout(mpadding)")
|
||||
#out2+=("$RADIUS [ <b>${jgtools_radius:-0}</b> ],^checkout(mradius)")
|
||||
out2+=("$SUBSPACING [ <b>${submenu_spacing:-0}px</b> ],^checkout(subspacing)")
|
||||
out2+=("^sep()")
|
||||
out2+=("$LINE_HEIGHT [ <b>$item_height_factor%</b> ],^checkout(lineheight)")
|
||||
out2+=("^sep()")
|
||||
out2+=("$ARROW_STRING [ <b>$arrow_string</b> ],^checkout(arrow)")
|
||||
out2+=("$ARROW_STRING_LEFT [ <b>$arrow_string_left</b> ],^checkout(arrowleft)")
|
||||
|
||||
|
||||
out3+=("^tag(mborder)")
|
||||
out3+=("^sep($BORDER)")
|
||||
for i in 0 1 2 3 4 5 6 8 10 12; do [[ "$jgtools_border" == $i ]] && out3+=("<big>綠</big> $(printf "<b><tt>%3s</tt></b>,%s" "$i" "mb-setvar jgtools_border=${i};$me")") || out3+=("<big>祿</big> $(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar jgtools_border=${i};$me")");done
|
||||
out3+=("^tag(mborder)")
|
||||
out3+=("^sep($BORDER)")
|
||||
for i in 0 1 2 3 4 5 6 8 10 12; do [[ "$jgtools_border" == $i ]] && out3+=("<big>綠</big> $(printf "<b><tt>%3s</tt></b>,%s" "$i" "jgctl border ${i}")") || out3+=("<big>祿</big> $(printf "<tt>%3s</tt>,%s" "$i" "jgctl border ${i}")");done
|
||||
|
||||
out3+=("^tag(mpadding)")
|
||||
out3+=("^sep($PADDING)")
|
||||
for i in 0 2 4 6 8 10 12 14 16 18 20 22 24 28 32 40; do [[ "$jgtools_padding" == $i ]] && out3+=("<big>綠</big> $(printf "<b><tt>%3s</tt></b>,%s" "$i" "mb-setvar jgtools_padding=${i};$me")") || out3+=("<big>祿</big> $(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar jgtools_padding=${i};$me")");done
|
||||
out3+=("^tag(mpadding)")
|
||||
out3+=("^sep($PADDING)")
|
||||
for i in 0 2 4 6 8 10 12 14 16 18 20 22 24 28 32 40; do [[ "$jgtools_padding" == $i ]] && out3+=("<big>綠</big> $(printf "<b><tt>%3s</tt></b>,%s" "$i" "jgctl padding ${i}")") || out3+=("<big>祿</big> $(printf "<tt>%3s</tt>,%s" "$i" "jgctl padding ${i}")");done
|
||||
|
||||
out3+=("^tag(subspacing)")
|
||||
out3+=("^sep($SUBSPACING)")
|
||||
for i in -20 -12 -10 -8 -6 -4 -2 0 1 2 4 6 8 10 12 14 16 18 20; do [[ "$submenu_spacing" == $i ]] && out3+=("<big>綠</big> $(printf "<b><tt>%4s</tt></b>,%s" "$i" "mb-setvar submenu_spacing=${i};$me")") || out3+=("<big>祿</big> $(printf "<tt>%4s</tt>,%s" "$i" "mb-setvar submenu_spacing=${i};$me")");done
|
||||
out3+=("^tag(subspacing)")
|
||||
out3+=("^sep($SUBSPACING)")
|
||||
for i in -20 -12 -10 -8 -6 -4 -2 0 1 2 4 6 8 10 12 14 16 18 20; do [[ "$submenu_spacing" == $i ]] && out3+=("<big>綠</big> $(printf "<b><tt>%4s</tt></b>,%s" "$i" "mb-setvar submenu_spacing=${i};$me")") || out3+=("<big>祿</big> $(printf "<tt>%4s</tt>,%s" "$i" "mb-setvar submenu_spacing=${i};$me")");done
|
||||
|
||||
out3+=("^tag(lineheight)")
|
||||
out3+=("^sep($LINE_HEIGHT)")
|
||||
for i in 160 180 200 220 240 280 300; do [[ "$item_height_factor" == $i ]] && out3+=("<big>綠</big> $(printf "<b><tt>%4s%%</tt></b>,%s" "$i" "mb-setvar item_height_factor=${i};$me")") || out3+=("<big>祿</big> $(printf "<tt>%4s%%</tt>,%s" "$i" "mb-setvar item_height_factor=${i};$me")");done
|
||||
|
||||
out3+=("^tag(arrow)")
|
||||
out3+=("^sep($ARROW_STRING)")
|
||||
for i in "" "" "" "" "" "" "" "" "" "壟" "" "" "" "" "" "" "..." ":." "." "+" "^" "-" "_" "" "" "" "" ""; do [[ "$arrow_string" == $i ]] && out3+=("<tt>>> </tt>$i<tt> <<</tt>,$me") || out3+=("<tt> </tt>$i,mb-setvar arrow_string=${i};$me");done
|
||||
out3+=("^tag(lineheight)")
|
||||
out3+=("^sep($LINE_HEIGHT)")
|
||||
for i in 160 180 200 220 240 280 300; do [[ "$item_height_factor" == $i ]] && out3+=("<big>綠</big> $(printf "<b><tt>%4s%%</tt></b>,%s" "$i" "mb-setvar item_height_factor=${i};$me")") || out3+=("<big>祿</big> $(printf "<tt>%4s%%</tt>,%s" "$i" "mb-setvar item_height_factor=${i};$me")");done
|
||||
|
||||
out3+=("^tag(arrow)")
|
||||
out3+=("^sep($ARROW_STRING)")
|
||||
for i in "" "" "" "" "" "" "" "" "" "壟" "" "" "" "" "" "" "..." ":." "." "+" "^" "-" "_" "" "" "" "" ""; do [[ "$arrow_string" == $i ]] && out3+=("<tt>>> </tt>$i<tt> <<</tt>,$me") || out3+=("<tt> </tt>$i,mb-setvar arrow_string=${i};$me");done
|
||||
|
||||
out3+=("^tag(arrowleft)")
|
||||
out3+=("^sep($ARROW_STRING_LEFT)")
|
||||
for i in "" "" "" "" "" "" "" "" "" "鹿" "" "" "" "" "" ""; do [[ "$arrow_string_left" == $i ]] && out3+=("<tt>>> </tt>$i<tt> <<</tt>,$me") || out3+=("<tt> </tt>$i,mb-setvar arrow_string_left=${i};$me");done
|
||||
out3+=("^tag(arrowleft)")
|
||||
out3+=("^sep($ARROW_STRING_LEFT)")
|
||||
for i in "" "" "" "" "" "" "" "" "" "鹿" "" "" "" "" "" ""; do [[ "$arrow_string_left" == $i ]] && out3+=("<tt>>> </tt>$i<tt> <<</tt>,$me") || out3+=("<tt> </tt>$i,mb-setvar arrow_string_left=${i};$me");done
|
||||
|
||||
out2+=("^sep()")
|
||||
out2+=("$MBG_OPACITY,^checkout(mbgopacity")
|
||||
out3+=("^tag(mbgopacity)")
|
||||
out3+=("^sep(mbgopacity)")
|
||||
out3+=("100% Opaque,jgctl tweak opacity 100;$me")
|
||||
out3+=("90%,jgctl tweak opacity 90;$me")
|
||||
out3+=("80%,jgctl tweak opacity 80;$me")
|
||||
out3+=("60%,jgctl tweak opacity 60;$me")
|
||||
out3+=("50%,jgctl tweak opacity 50;$me")
|
||||
out3+=("40%,jgctl tweak opacity 40;$me")
|
||||
out3+=("30%,jgctl tweak opacity 30;$me")
|
||||
out3+=("20%,jgctl tweak opacity 20;$me")
|
||||
out3+=("10%,jgctl tweak opacity 10;$me")
|
||||
out3+=("0% Fully transparent,jgctl tweak opacity 0;$me")
|
||||
out2+=("^sep()")
|
||||
out2+=("$MBG_OPACITY,^checkout(mbgopacity")
|
||||
out3+=("^tag(mbgopacity)")
|
||||
out3+=("^sep(mbgopacity)")
|
||||
out3+=("100% Opaque,jgctl tweak opacity 100;$me")
|
||||
out3+=("90%,jgctl tweak opacity 90;$me")
|
||||
out3+=("80%,jgctl tweak opacity 80;$me")
|
||||
out3+=("60%,jgctl tweak opacity 60;$me")
|
||||
out3+=("50%,jgctl tweak opacity 50;$me")
|
||||
out3+=("40%,jgctl tweak opacity 40;$me")
|
||||
out3+=("30%,jgctl tweak opacity 30;$me")
|
||||
out3+=("20%,jgctl tweak opacity 20;$me")
|
||||
out3+=("10%,jgctl tweak opacity 10;$me")
|
||||
out3+=("0% Fully transparent,jgctl tweak opacity 0;$me")
|
||||
|
||||
out2+=("^sep()")
|
||||
out2+=("Solid Color,jgctl tweak solid;$me")
|
||||
out2+=("Gradient,jgctl tweak gradient;$me")
|
||||
out2+=("^sep()")
|
||||
out2+=("Solid Color,jgctl tweak solid;$me")
|
||||
out2+=("Gradient,jgctl tweak gradient;$me")
|
||||
|
||||
|
||||
out2+=("^sep($SIZING)")
|
||||
out2+=("$WIDE,jgctl tweak sizing wide;$me")
|
||||
out2+=("$NORMAL,jgctl tweak sizing normal;$me")
|
||||
out2+=("$TIGHT,jgctl tweak sizing tight;$me")
|
||||
out2+=("^sep($SIZING)")
|
||||
out2+=("$WIDE,jgctl tweak sizing wide;$me")
|
||||
out2+=("$NORMAL,jgctl tweak sizing normal;$me")
|
||||
out2+=("$TIGHT,jgctl tweak sizing tight;$me")
|
||||
|
||||
|
||||
|
||||
#### COLOR SCHEMES
|
||||
out+=("<big><span bgcolor='${MBG}'> <span fgcolor='${TBG}'></span> <span fgcolor='${SFG}'></span> <span fgcolor='${SBG}'></span> </span></big> $SCHEMES,^checkout(schemes)")
|
||||
out2+=("^tag(schemes)")
|
||||
out2+=("^sep($SCHEMES)")
|
||||
out2+=("^sep($SYSTEM_SCHEMES)")
|
||||
out2+=("^tag(schemes)")
|
||||
out2+=("^sep($SCHEMES)")
|
||||
out2+=("^sep($MONOCHROMATIC)")
|
||||
out2+=("^sep(<i>$CHOOSE_AND_PICK</i>)")
|
||||
out2+=("<big></big> $LIGHTBG...,jgctl mono pick light")
|
||||
out2+=("<big></big> $DARKBG...,jgctl mono pick dark")
|
||||
out2+=("^sep($GENERATEFROMWP)")
|
||||
out2+=("<big><span bgcolor='${w[-3]}'> <span bgcolor='${w[-5]}'> <span bgcolor='${w[-1]}' fgcolor='${w[1]}'> $LIGHTBG </span> </span> </span></big>,w2theme menu light;$me")
|
||||
out2+=("<big><span bgcolor='${w[1]}'> <span bgcolor='${w[4]}'> <span bgcolor='${w[2]}' fgcolor='${w[-2]}'> $DARKBG </span> </span> </span></big>,w2theme menu dark;$me")
|
||||
out2+=("^sep($SYSTEM_SCHEMES)")
|
||||
|
||||
n=1
|
||||
while IFS="|" read -r mbg mbgt mborder tbg tfg tborder normbg nfg sbg sfg sborder sepfg grad scheme_name
|
||||
do
|
||||
((n=n+1))
|
||||
case "$grad" in
|
||||
none)icon="";;
|
||||
top)icon="";;
|
||||
right)icon="";;
|
||||
bottom)icon="";;
|
||||
left)icon="";;
|
||||
top_left)icon="";;
|
||||
top_right)icon="";;
|
||||
bottom_left)icon="";;
|
||||
bottom_right)icon="";;
|
||||
esac
|
||||
out2+=("<tt>$(printf '%-20s' "${scheme_name}")</tt><big><span bgcolor='${mbg}' fgcolor='${nfg}'> <small>item</small> <span bgcolor='${tbg}' fgcolor='${tfg}'> <small><b>title</b></small> </span> <span bgcolor='${sbg}' fgcolor='${sfg}'> <small>[ sel ]</small> </span> <span bgcolor='${mbgt}'> <small>${icon}</small> </span></span></big>,jgctl applyscheme sys $n;$me")
|
||||
done < <(tail -n +2 "$SYSSCHEMES")
|
||||
n=1
|
||||
while IFS="|" read -r mbg mbga mbgt mbgta mborder mbordera tbg tbga tfg tfga tborder tbordera normbg normbga nfg nfga sbg sbga sfg sfga sborder sbordera sepfg sepfga b r p ss ibor irad a al sephal grad scheme_name
|
||||
do
|
||||
((n=n+1))
|
||||
case "$grad" in
|
||||
none)icon="";;
|
||||
top)icon="";;
|
||||
right)icon="";;
|
||||
bottom)icon="";;
|
||||
left)icon="";;
|
||||
top_left)icon="";;
|
||||
top_right)icon="";;
|
||||
bottom_left)icon="";;
|
||||
bottom_right)icon="";;
|
||||
esac
|
||||
out2+=("<tt>$(printf '%-20s' "${scheme_name}")</tt><big><span bgcolor='${mbg}' fgcolor='${nfg}'> <small>item</small> <span bgcolor='${tbg}' fgcolor='${tfg}'> <small><b>title</b></small> </span> <span bgcolor='${sbg}' fgcolor='${sfg}'> <small>[ sel ]</small> </span> <span bgcolor='${mbgt}'> <small>${icon}</small> </span></span></big>,jgctl applyscheme sys $n;$me")
|
||||
done < <(tail -n +2 "$SYSSCHEMES")
|
||||
|
||||
out2+=("^sep($YOUR_SCHEMES)")
|
||||
out2+=("<big></big> $SAVE_CURRSCHEME,jgctl savescheme '${currcolors}';$me")
|
||||
out2+=("<big></big> $OPEN_SCHEMEFILE,xdg-open $USERSCHEMES")
|
||||
out2+=("^sep()")
|
||||
n=1
|
||||
while IFS="|" read -r mbg mbgt mborder tbg tfg tborder normbg nfg sbg sfg sborder sepfg grad scheme_name
|
||||
do
|
||||
((n=n+1))
|
||||
case "$grad" in
|
||||
none)icon="";;
|
||||
top)icon="";;
|
||||
right)icon="";;
|
||||
bottom)icon="";;
|
||||
left)icon="";;
|
||||
top_left)icon="";;
|
||||
top_right)icon="";;
|
||||
bottom_left)icon="";;
|
||||
bottom_right)icon="";;
|
||||
esac
|
||||
out2+=("<tt>$(printf '%-20s' "${scheme_name}")</tt><big><span bgcolor='${mbg}' fgcolor='${nfg}'> <small>item</small> <span bgcolor='${tbg}' fgcolor='${tfg}'> <small><b>title</b></small> </span> <span bgcolor='${sbg}' fgcolor='${sfg}'> <small>[ sel ]</small> </span> <span bgcolor='${mbgt}'> <small>${icon}</small> </span></span></big>,^checkout(sch${n})")
|
||||
out3+=("^tag(sch${n}")
|
||||
out3+=("^sep($COLORSCHEME: ${scheme_name})")
|
||||
out3+=("<big></big> $APPLY_SCHEME,jgctl applyscheme usr ${n};$me")
|
||||
out3+=("^sep($DELETE)")
|
||||
out3+=("<big></big> $DELETE_SCHEME ${scheme_name},jgctl delscheme ${n};$me")
|
||||
done < <(tail -n +2 "$USERSCHEMES")
|
||||
out2+=("^sep($YOUR_SCHEMES)")
|
||||
out2+=("<big></big> $SAVE_CURRSCHEME,jgctl savescheme '${currcolors}';$me")
|
||||
out2+=("<big></big> $OPEN_SCHEMEFILE,xdg-open $USERSCHEMES")
|
||||
out2+=("^sep()")
|
||||
n=1
|
||||
while IFS="|" read -r mbg mbga mbgt mbgta mborder mbordera tbg tbga tfg tfga tborder tbordera normbg normbga nfg nfga sbg sbga sfg sfga sborder sbordera sepfg sepfga b r p ss ibor irad a al sephal grad scheme_name
|
||||
do
|
||||
((n=n+1))
|
||||
case "$grad" in
|
||||
none)icon="";;
|
||||
top)icon="";;
|
||||
right)icon="";;
|
||||
bottom)icon="";;
|
||||
left)icon="";;
|
||||
top_left)icon="";;
|
||||
top_right)icon="";;
|
||||
bottom_left)icon="";;
|
||||
bottom_right)icon="";;
|
||||
esac
|
||||
out2+=("<tt>$(printf '%-20s' "${scheme_name}")</tt><big><span bgcolor='${mbg}' fgcolor='${nfg}'> <small>item</small> <span bgcolor='${tbg}' fgcolor='${tfg}'> <small><b>title</b></small> </span> <span bgcolor='${sbg}' fgcolor='${sfg}'> <small>[ sel ]</small> </span> <span bgcolor='${mbgt}'> <small>${icon}</small> </span></span></big>,^checkout(sch${n})")
|
||||
out3+=("^tag(sch${n}")
|
||||
out3+=("^sep($COLORSCHEME: ${scheme_name})")
|
||||
out3+=("<big></big> $APPLY_SCHEME,jgctl applyscheme usr ${n};$me")
|
||||
out3+=("^sep($DELETE)")
|
||||
out3+=("<big></big> $DELETE_SCHEME ${scheme_name},jgctl delscheme ${n};$me")
|
||||
done < <(tail -n +2 "$USERSCHEMES")
|
||||
|
||||
|
||||
|
||||
out2+=("^sep($GENERATEFROMWP)")
|
||||
out2+=("<big><span bgcolor='${w[-3]}'> <span bgcolor='${w[-5]}'> <span bgcolor='${w[-1]}' fgcolor='${w[1]}'> $LIGHTBG </span> </span> </span></big>,w2theme menu light;$me")
|
||||
out2+=("<big><span bgcolor='${w[1]}'> <span bgcolor='${w[4]}'> <span bgcolor='${w[2]}' fgcolor='${w[-2]}'> $DARKBG </span> </span> </span></big>,w2theme menu dark;$me")
|
||||
|
||||
out+=("^sep($FONTS)")
|
||||
out+=("<big></big> $TITLE [ <b>$menu_sep_font_family $menu_sep_font_size</b> ],^checkout(mtitlefont)")
|
||||
out+=("<big></big> $ITEM [ <b>$menu_font_family $menu_font_size</b> ],^checkout(mitemfont)")
|
||||
|
||||
# Item font submenu
|
||||
out2+=("^tag(mitemfont)")
|
||||
out2+=("^sep($ITEM_FONT)")
|
||||
out2+=("<big></big> $FONT_CUSTOM,mb-setfont menu_item;$me")
|
||||
out2+=("^sep($FONT_SIZE)")
|
||||
out2+=("<big></big> $INCREASE <b>$((menu_font_size+1)) px</b>,mb-setvar menu_font_size=$((menu_font_size+1));$me")
|
||||
out2+=("<big></big> $DECREASE <b>$((menu_font_size-1)) px</b>,mb-setvar menu_font_size=$((menu_font_size-1));$me")
|
||||
out2+=("^sep()")
|
||||
sizes=(14 13 12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$menu_font_size" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,$me") || out2+=("<big>祿</big> $i px,mb-setvar menu_font_size=$i;$me")
|
||||
done
|
||||
|
||||
# Item font submenu
|
||||
out2+=("^tag(mitemfont)")
|
||||
out2+=("^sep($ITEM_FONT)")
|
||||
out2+=("<big></big> $FONT_CUSTOM,mb-setfont menu_item;$me")
|
||||
out2+=("^sep($FONT_SIZE)")
|
||||
out2+=("<big></big> $INCREASE <b>$((menu_font_size+1)) px</b>,mb-setvar menu_font_size=$((menu_font_size+1));$me")
|
||||
out2+=("<big></big> $DECREASE <b>$((menu_font_size-1)) px</b>,mb-setvar menu_font_size=$((menu_font_size-1));$me")
|
||||
out2+=("^sep()")
|
||||
sizes=(14 13 12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$menu_font_size" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,$me") || out2+=("<big>祿</big> $i px,mb-setvar menu_font_size=$i;$me")
|
||||
done
|
||||
|
||||
if [ -f "$HOME/.config/mabox/fonts.list" ];then
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list)
|
||||
else
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" /usr/share/mabox-colorizer/fonts.list)
|
||||
cp /usr/share/mabox-colorizer/fonts.list ~/.config/mabox/
|
||||
fi
|
||||
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($FONT_FAMILY)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$menu_font_family" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_font_family='${fon}'\";$me")
|
||||
done
|
||||
fi
|
||||
if [ -f "$HOME/.config/mabox/fonts.list" ];then
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list)
|
||||
else
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" /usr/share/mabox-colorizer/fonts.list)
|
||||
cp /usr/share/mabox-colorizer/fonts.list ~/.config/mabox/
|
||||
fi
|
||||
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($FONT_FAMILY)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$menu_font_family" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_font_family='${fon}'\";$me")
|
||||
done
|
||||
fi
|
||||
|
||||
out2+=("^tag(mtitlefont)")
|
||||
out2+=("^sep($TITLE_FONT)")
|
||||
out2+=("<big></big> $FONT_CUSTOM,mb-setfont menu_sep;$me")
|
||||
out2+=("^tag(mtitlefont)")
|
||||
out2+=("^sep($TITLE_FONT)")
|
||||
out2+=("<big></big> $FONT_CUSTOM,mb-setfont menu_sep;$me")
|
||||
|
||||
out2+=("^sep($FONT_SIZE)")
|
||||
out2+=("<big></big> $INCREASE <b>$((menu_sep_font_size+1)) px</b>,mb-setvar menu_sep_font_size=$((menu_sep_font_size+1));$me")
|
||||
out2+=("<big></big> $DECREASE <b>$((menu_sep_font_size-1)) px</b>,mb-setvar menu_sep_font_size=$((menu_sep_font_size-1));$me")
|
||||
out2+=("^sep()")
|
||||
sizes=(14 13 12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$menu_sep_font_size" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,$me") || out2+=("<big>祿</big> $i px,mb-setvar menu_sep_font_size=$i;$me")
|
||||
done
|
||||
out2+=("^sep($FONT_SIZE)")
|
||||
out2+=("<big></big> $INCREASE <b>$((menu_sep_font_size+1)) px</b>,mb-setvar menu_sep_font_size=$((menu_sep_font_size+1));$me")
|
||||
out2+=("<big></big> $DECREASE <b>$((menu_sep_font_size-1)) px</b>,mb-setvar menu_sep_font_size=$((menu_sep_font_size-1));$me")
|
||||
out2+=("^sep()")
|
||||
sizes=(14 13 12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$menu_sep_font_size" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,$me") || out2+=("<big>祿</big> $i px,mb-setvar menu_sep_font_size=$i;$me")
|
||||
done
|
||||
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($FONT_FAMILY)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$menu_sep_font_family" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_sep_font_family='${fon}'\";$me")
|
||||
done
|
||||
fi
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($FONT_FAMILY)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$menu_sep_font_family" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_sep_font_family='${fon}'\";$me")
|
||||
done
|
||||
fi
|
||||
|
||||
### MENU
|
||||
out+=("^sep(Menu)")
|
||||
@ -493,16 +503,16 @@ fi
|
||||
out+=("^sep()")
|
||||
out+=("Apply <big><span bgcolor='${SBG}' fgcolor='${SFG}'> accent </span></big> preset,^checkout(sel_accents)")
|
||||
|
||||
out2+=("^tag(sel_accents)")
|
||||
out2+=("^sep(Accent presets)")
|
||||
while IFS="," read -r BG FG BGNAME FGNAME
|
||||
do
|
||||
[[ "$BGNAME" == "" ]] && BGNAME=${BG}
|
||||
[[ "$FGNAME" == "" ]] && FGNAME=${FG}
|
||||
out2+=("<big><span bgcolor='${FG}'> <span bgcolor='${BG}' fgcolor='${FG}'><small><tt>$(printf '%*s' 25 "${FGNAME} on ${BGNAME}")</tt></small> </span> </span></big>,jgctl accent '${BG}' '${FG}';$me")
|
||||
out21+=("<big><span bgcolor='${BG}'> <span bgcolor='${FG}' fgcolor='${BG}'><small><tt>$(printf '%*s' 25 "${BGNAME} on ${FGNAME}")</tt></small> </span> </span></big>,jgctl accent '${FG}' '${BG}';$me")
|
||||
done < <(tail -n +2 /usr/share/mabox-colorizer/readable_colors.csv)
|
||||
out2+=("${out21[@]}")
|
||||
out2+=("^tag(sel_accents)")
|
||||
out2+=("^sep(Accent presets)")
|
||||
while IFS="," read -r BG FG BGNAME FGNAME
|
||||
do
|
||||
[[ "$BGNAME" == "" ]] && BGNAME=${BG}
|
||||
[[ "$FGNAME" == "" ]] && FGNAME=${FG}
|
||||
out2+=("<big><span bgcolor='${FG}'> <span bgcolor='${BG}' fgcolor='${FG}'><small><tt>$(printf '%*s' 25 "${FGNAME} on ${BGNAME}")</tt></small> </span> </span></big>,jgctl accent '${BG}' '${FG}';$me")
|
||||
out21+=("<big><span bgcolor='${BG}'> <span bgcolor='${FG}' fgcolor='${BG}'><small><tt>$(printf '%*s' 25 "${BGNAME} on ${FGNAME}")</tt></small> </span> </span></big>,jgctl accent '${FG}' '${BG}';$me")
|
||||
done < <(tail -n +2 /usr/share/mabox-colorizer/readable_colors.csv)
|
||||
out2+=("${out21[@]}")
|
||||
|
||||
### ITEM
|
||||
out+=("^sep($ITEM)")
|
||||
@ -567,6 +577,7 @@ if [[ "$1" == "-s" ]]; then
|
||||
|
||||
out+=("^sep()")
|
||||
out+=(" ${arrow_string_left} $_COLORIZER_ROOT,colorizer -s")
|
||||
out+=(" ${arrow_string_left} ${arrow_string_left} $_LEFTSIDEPANEL,mb-jgtools places")
|
||||
|
||||
if [[ "$colorizer_size" == "full" ]];then
|
||||
eval $(xdotool getdisplaygeometry --shell)
|
||||
@ -589,7 +600,7 @@ if [[ "$1" == "-s" ]]; then
|
||||
JGWIDTH=$((jgtools_padding + 270 + jgtools_padding))
|
||||
MENU_PADDING_TOP=$((jgtools_padding + 150))
|
||||
#WALLPAPER
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
THUMBDIR="$HOME/.cache/colorizer/thumbs"
|
||||
mkdir -p ${THUMBDIR}
|
||||
NAME=${WALLPATH////_}
|
||||
|
204
bin/colorizer-ob
204
bin/colorizer-ob
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# colorizer - set of tools for Mabox (auto)theming
|
||||
# Copyright (C) 2022-2023 Daniel Napora <napcok@gmail.com>
|
||||
# Copyright (C) 2022-2024 Daniel Napora <napcok@gmail.com>
|
||||
#
|
||||
# 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
|
||||
@ -26,7 +26,7 @@ USERTHEMES="$HOME/.config/colorizer/openbox/userthemes.csv"
|
||||
### Wallpaper colors
|
||||
WALLPALDIR="$HOME/.cache/colorizer/palettes"
|
||||
mkdir -p "$WALLPALDIR"
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
NAME=${WALLPATH////_}
|
||||
if [[ "${NAME}" =~ ^_home_.* ]]; then
|
||||
n=${#HOME}
|
||||
@ -71,6 +71,8 @@ case "$LANG" in
|
||||
DELETE="Usuń"
|
||||
DELETE_THEME="Usuń motyw"
|
||||
OBTHEME_LBL="Motyw OpenBox"
|
||||
MONOCHROMATIC="Monochromatyczny"
|
||||
CHOOSE_AND_PICK="Wybierz wariant i pobierz kolor..."
|
||||
GENERATEFROMWP="Generuj z kolorów tapety..."
|
||||
LIGHTBG=" Jasne tło"
|
||||
DARKBG="Ciemne tło"
|
||||
@ -138,6 +140,7 @@ case "$LANG" in
|
||||
UNLOCK="odblokuj swoją kreatywność..."
|
||||
SWITCH_TO_MBCOLORS="Przełącz na <b>MBColors</b>"
|
||||
_COLORIZER_ROOT="<b>Colorizer</b> - menu główne"
|
||||
_LEFTSIDEPANEL="Lewy panel boczny"
|
||||
;;
|
||||
*)
|
||||
QUICK_TWEAKS="Global Settings/Quick Tweaks"
|
||||
@ -154,6 +157,8 @@ case "$LANG" in
|
||||
DELETE="Delete"
|
||||
DELETE_THEME="Delete theme"
|
||||
OBTHEME_LBL="OpenBox theme"
|
||||
MONOCHROMATIC="Monochromatic"
|
||||
CHOOSE_AND_PICK="Choose variant and pick color..."
|
||||
GENERATEFROMWP="Generate from wallpaper colors..."
|
||||
LIGHTBG="Light Background"
|
||||
DARKBG="Dark Background"
|
||||
@ -208,7 +213,7 @@ case "$LANG" in
|
||||
BORDER="Window Border"
|
||||
BORDER_PX="Border (px)"
|
||||
ACTIVE_BORDER="Active Border"
|
||||
INACTIVE_BORDER="Inactiva Border"
|
||||
INACTIVE_BORDER="Inactive Border"
|
||||
HANDLEWIDTH="Handle Width"
|
||||
ACTIVEHANDLE="Active Handle"
|
||||
YES="Yes"
|
||||
@ -221,6 +226,7 @@ case "$LANG" in
|
||||
UNLOCK="Unlock your creativity..."
|
||||
SWITCH_TO_MBCOLORS="Switch to <b>MBColors</b>"
|
||||
_COLORIZER_ROOT="<b>Colorizer</b> rootmenu"
|
||||
_LEFTSIDEPANEL="Left Sidepanel"
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -241,19 +247,19 @@ getvalues () {
|
||||
#read BEVEL REST <<< "$(grep .title.bg: ${THEMERC} | cut -d':' -f2)"
|
||||
read TITLEBG <<< "$(grep .title.bg: ${THEMERC} | cut -d':' -f2)"
|
||||
case "${TITLEBG,,}" in
|
||||
*flat*) BEVEL="flat";;
|
||||
*raised*) BEVEL="raised";;
|
||||
*sunken*) BEVEL="sunken";;
|
||||
esac
|
||||
*flat*) BEVEL="flat";;
|
||||
*raised*) BEVEL="raised";;
|
||||
*sunken*) BEVEL="sunken";;
|
||||
esac
|
||||
case "${TITLEBG,,}" in
|
||||
*solid*) GRAD=Solid;;
|
||||
*splitvertical*) GRAD=SplitVertical;;
|
||||
*vertical*) GRAD=Vertical;;
|
||||
*mirrorhorizontal*) GRAD=MirrorHorizontal;;
|
||||
*horizontal*) GRAD=Horizontal;;
|
||||
*crossdiagonal*) GRAD=CrossDiagonal;;
|
||||
*diagonal*) GRAD=Diagonal;;
|
||||
*pyramid*) GRAD=Pyramid;;
|
||||
*solid*) GRAD=Solid;;
|
||||
*splitvertical*) GRAD=SplitVertical;;
|
||||
*vertical*) GRAD=Vertical;;
|
||||
*mirrorhorizontal*) GRAD=MirrorHorizontal;;
|
||||
*horizontal*) GRAD=Horizontal;;
|
||||
*crossdiagonal*) GRAD=CrossDiagonal;;
|
||||
*diagonal*) GRAD=Diagonal;;
|
||||
*pyramid*) GRAD=Pyramid;;
|
||||
|
||||
esac
|
||||
but=$(<"$MBCOLORSDIR/.buttons")
|
||||
@ -276,7 +282,9 @@ getvaluesrc() {
|
||||
FNAME=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:name' "$cfg")
|
||||
NDSLIMC=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:titleLayout' "$cfg")
|
||||
WEIGHT=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:weight' "$cfg")
|
||||
SLANT=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:slant' "$cfg")
|
||||
WEIGHT_INACT=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:weight' "$cfg")
|
||||
SLANT=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:slant' "$cfg")
|
||||
SLANT_INACT=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:slant' "$cfg")
|
||||
}
|
||||
|
||||
|
||||
@ -320,79 +328,85 @@ currvalues=("${ABG}|${ABGTO}|${AFG}|${ALINE}|${NBG}|${NBGTO}|${NFG}|${NLINE}|${G
|
||||
#notify-send.sh "$BEVEL" "${currvalues}"
|
||||
|
||||
if [ ! -f "$USERTHEMES" ]; then
|
||||
mkdir -p "$HOME/.config/colorizer/openbox/"
|
||||
echo " ABG | ABGTO | AFG | ALINE | NBG | NBGTO | NFG | NLINE | GRAD |TXTJUST|PHEIGHT|PWIDTH|HANDLE|BORD|BEVEL|BUTTONS|FSIZE|FNAME|NDSLIMC|WEIGHT|SLANT|scheme_name" > "$USERTHEMES"
|
||||
mkdir -p "$HOME/.config/colorizer/openbox/"
|
||||
echo " ABG | ABGTO | AFG | ALINE | NBG | NBGTO | NFG | NLINE | GRAD |TXTJUST|PHEIGHT|PWIDTH|HANDLE|BORD|BEVEL|BUTTONS|FSIZE|FNAME|NDSLIMC|WEIGHT|SLANT|scheme_name" > "$USERTHEMES"
|
||||
fi
|
||||
|
||||
#out+=("^sep($OBTHEME_LBL: <i>$OBTHEME</i>)")
|
||||
|
||||
out+=("<big></big> $QUICK_TWEAKS,^checkout(tweaks)")
|
||||
|
||||
out2+=("^tag(tweaks)")
|
||||
out2+=("^sep(Overall style)")
|
||||
out2+=("Large,obtctl tweak large;$me")
|
||||
out2+=("Big,obtctl tweak big;$me")
|
||||
out2+=("Normal,obtctl tweak normal;$me")
|
||||
out2+=("Small,obtctl tweak small;$me")
|
||||
out2+=("Tiny,obtctl tweak tiny;$me")
|
||||
out2+=("^sep()")
|
||||
out2+=("<big></big> $RANDOMIZE,obtctl randomizer;$me")
|
||||
out2+=("\"\"\"^sep($RAISED_OR_FLAT?)\"\"\"")
|
||||
[[ "$BEVEL" == "flat" ]] && out2+=("<big>綠</big> $FLAT,obtctl raised 0;$me") || out2+=("<big>祿</big> $FLAT,obtctl raised 0;$me")
|
||||
[[ "$BEVEL" == "raised" ]] && out2+=("<big>綠</big> $RAISED,obtctl raised 1;$me") || out2+=("<big>祿</big> $RAISED,obtctl raised 1;$me")
|
||||
[[ "$BEVEL" == "sunken" ]] && out2+=("<big>綠</big> $SUNKEN,obtctl raised 2;$me") || out2+=("<big>祿</big> $SUNKEN,obtctl raised 2;$me")
|
||||
out2+=("^sep($GRADIENT_TYPE)")
|
||||
[[ "$GRAD" == Solid ]] && out2+=("<big>綠</big> $SOLID_COLOR,obtctl gradient_type solid;$me") || out2+=("<big>祿</big> $SOLID_COLOR,obtctl gradient_type solid;$me")
|
||||
out2+=("^sep()")
|
||||
[[ "$GRAD" == Vertical ]] && out2+=("<big>綠</big> $VERTICAL,obtctl gradient_type vertical;$me") || out2+=("<big>祿</big> $VERTICAL,obtctl gradient_type vertical;$me")
|
||||
[[ "$GRAD" == Horizontal ]] && out2+=("<big>綠</big> $HORIZONTAL,obtctl gradient_type horizontal;$me") || out2+=("<big>祿</big> $HORIZONTAL,obtctl gradient_type horizontal;$me")
|
||||
[[ "$GRAD" == MirrorHorizontal ]] && out2+=("<big>綠</big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") || out2+=("<big>祿</big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me")
|
||||
[[ "$GRAD" == SplitVertical ]] && out2+=("<big>綠</big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") || out2+=("<big>祿</big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me")
|
||||
[[ "$GRAD" == Diagonal ]] && out2+=("<big>綠</big> $DIAGONAL,obtctl gradient_type diagonal;$me") || out2+=("<big>祿</big> $DIAGONAL,obtctl gradient_type diagonal;$me")
|
||||
[[ "$GRAD" == CrossDiagonal ]] && out2+=("<big>綠</big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") || out2+=("<big>祿</big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me")
|
||||
[[ "$GRAD" == Pyramid ]] && out2+=("<big>綠</big> $PYRAMID,obtctl gradient_type pyramid;$me") || out2+=("<big>祿</big> $PYRAMID,obtctl gradient_type pyramid;$me")
|
||||
out2+=("^tag(tweaks)")
|
||||
out2+=("^sep(Overall style)")
|
||||
out2+=("Large,obtctl tweak large;$me")
|
||||
out2+=("Big,obtctl tweak big;$me")
|
||||
out2+=("Normal,obtctl tweak normal;$me")
|
||||
out2+=("Small,obtctl tweak small;$me")
|
||||
out2+=("Tiny,obtctl tweak tiny;$me")
|
||||
out2+=("^sep()")
|
||||
out2+=("<big></big> $RANDOMIZE,obtctl randomizer;$me")
|
||||
out2+=("\"\"\"^sep($RAISED_OR_FLAT?)\"\"\"")
|
||||
[[ "$BEVEL" == "flat" ]] && out2+=("<big>綠</big> $FLAT,obtctl raised 0;$me") || out2+=("<big>祿</big> $FLAT,obtctl raised 0;$me")
|
||||
[[ "$BEVEL" == "raised" ]] && out2+=("<big>綠</big> $RAISED,obtctl raised 1;$me") || out2+=("<big>祿</big> $RAISED,obtctl raised 1;$me")
|
||||
[[ "$BEVEL" == "sunken" ]] && out2+=("<big>綠</big> $SUNKEN,obtctl raised 2;$me") || out2+=("<big>祿</big> $SUNKEN,obtctl raised 2;$me")
|
||||
out2+=("^sep($GRADIENT_TYPE)")
|
||||
[[ "$GRAD" == Solid ]] && out2+=("<big>綠</big> $SOLID_COLOR,obtctl gradient_type solid;$me") || out2+=("<big>祿</big> $SOLID_COLOR,obtctl gradient_type solid;$me")
|
||||
out2+=("^sep()")
|
||||
[[ "$GRAD" == Vertical ]] && out2+=("<big>綠</big> $VERTICAL,obtctl gradient_type vertical;$me") || out2+=("<big>祿</big> $VERTICAL,obtctl gradient_type vertical;$me")
|
||||
[[ "$GRAD" == Horizontal ]] && out2+=("<big>綠</big> $HORIZONTAL,obtctl gradient_type horizontal;$me") || out2+=("<big>祿</big> $HORIZONTAL,obtctl gradient_type horizontal;$me")
|
||||
[[ "$GRAD" == MirrorHorizontal ]] && out2+=("<big>綠</big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") || out2+=("<big>祿</big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me")
|
||||
[[ "$GRAD" == SplitVertical ]] && out2+=("<big>綠</big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") || out2+=("<big>祿</big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me")
|
||||
[[ "$GRAD" == Diagonal ]] && out2+=("<big>綠</big> $DIAGONAL,obtctl gradient_type diagonal;$me") || out2+=("<big>祿</big> $DIAGONAL,obtctl gradient_type diagonal;$me")
|
||||
[[ "$GRAD" == CrossDiagonal ]] && out2+=("<big>綠</big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") || out2+=("<big>祿</big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me")
|
||||
[[ "$GRAD" == Pyramid ]] && out2+=("<big>綠</big> $PYRAMID,obtctl gradient_type pyramid;$me") || out2+=("<big>祿</big> $PYRAMID,obtctl gradient_type pyramid;$me")
|
||||
|
||||
#### COLOR SCHEMES
|
||||
out+=("<big><span fgcolor='${ABGTO}'></span> <span fgcolor='${ABG}'></span> <span fgcolor='${ABGTO}'></span></big> $THEMES,^checkout(schemes)")
|
||||
out2+=("^tag(schemes)")
|
||||
out2+=("^sep($THEMES)")
|
||||
out2+=("^sep($SYSTEM_THEMES)")
|
||||
n=1
|
||||
while IFS="|" read -r abg abgto afg aline nbg nbgto nfg nline grad txtjust pheight pwidth handle bord bevel buttons fsize fname ndslimc weight slant scheme_name
|
||||
do
|
||||
((n=n+1))
|
||||
out2+=("<big><span bgcolor='${abg}' fgcolor='${afg}'><span bgcolor='${abgto}'> </span><small> <tt>$(printf '%-20s' "${scheme_name}")</tt> </small><span bgcolor='${abgto}'> </span></span> <span bgcolor='${nbgto}'> </span><span bgcolor='${nbg}' fgcolor='${nfg}'><small> <tt><i>inactive</i></tt> </small></span><span bgcolor='${nbgto}'> </span></big>,^checkout(schsys${n})")
|
||||
out3+=("^tag(schsys${n}")
|
||||
out3+=("^sep($THEME: ${scheme_name})")
|
||||
out3+=("^sep($APPLY)")
|
||||
out3+=("\"\"\"<big></big> $APPLY_THEME\"\"\",obtctl applytheme sys ${n};$me")
|
||||
out3+=("^sep()")
|
||||
out3+=("<big></big> $APPLY_SCHEME <big><span bgcolor='${abgto}'> </span><span bgcolor='${abg}'> </span><span bgcolor='${abgto}'> </span></big>,obtctl applyscheme sys ${n};$me")
|
||||
done < <(tail -n +2 "$SYSTHEMES")
|
||||
out2+=("^sep($YOUR_THEMES)")
|
||||
out2+=("<big></big> $SAVE_CURRTHEME,obtctl savetheme '${currvalues}';$me")
|
||||
out2+=("<big></big> $OPEN_THEMEFILE,xdg-open $USERSCHEMES")
|
||||
out2+=("^sep()")
|
||||
n=1
|
||||
while IFS="|" read -r abg abgto afg aline nbg nbgto nfg nline grad txtjust pheight pwidth handle bord bevel buttons fsize fname ndslimc weight slant scheme_name
|
||||
do
|
||||
((n=n+1))
|
||||
out2+=("<big><span bgcolor='${abg}' fgcolor='${afg}'><span bgcolor='${abgto}'> </span><small> <tt>$(printf '%-20s' "${scheme_name}")</tt> </small><span bgcolor='${abgto}'> </span></span> <span bgcolor='${nbgto}'> </span><span bgcolor='${nbg}' fgcolor='${nfg}'><small> <tt><i>inactive</i></tt> </small></span><span bgcolor='${nbgto}'> </span></big>,^checkout(sch${n})")
|
||||
out3+=("^tag(sch${n}")
|
||||
out3+=("^sep($THEME: ${scheme_name})")
|
||||
out3+=("^sep($APPLY)")
|
||||
out3+=("\"\"\"<big></big> $APPLY_THEME\"\"\",obtctl applytheme usr ${n};$me")
|
||||
out3+=("^sep()")
|
||||
out3+=("<big></big> $APPLY_SCHEME <big><span bgcolor='${abgto}'> </span><span bgcolor='${abg}'> </span><span bgcolor='${abgto}'> </span></big>,obtctl applyscheme usr ${n};$me")
|
||||
out3+=("^sep($DELETE)")
|
||||
out3+=("<big></big> $DELETE_THEME: <i>${scheme_name}</i>,obtctl delscheme ${n};$me")
|
||||
done < <(tail -n +2 "$USERTHEMES")
|
||||
|
||||
out2+=("^sep(<i>$GENERATEFROMWP</i>)")
|
||||
out2+=("^tag(schemes)")
|
||||
out2+=("^sep($THEMES)")
|
||||
out2+=("^sep($MONOCHROMATIC)")
|
||||
out2+=("^sep(<i>$CHOOSE_AND_PICK</i>)")
|
||||
out2+=("<big></big> $LIGHTBG...,obtctl mono pick light col")
|
||||
out2+=("<big></big> $DARKBG...,obtctl mono pick dark col")
|
||||
out2+=("^sep(<i>$GENERATEFROMWP</i>)")
|
||||
out2+=("<big><span bgcolor='${w[-2]}' fgcolor='#222222'> <span bgcolor='${w[-4]}'> </span> $LIGHTBG <span bgcolor='${w[-4]}'> </span> </span></big>,w2theme ob light;$me")
|
||||
out2+=("<big><span bgcolor='${w[2]}' fgcolor='#E5E5E5'> <span bgcolor='${w[4]}'> </span> $DARKBG <span bgcolor='${w[4]}'> </span> </span></big>,w2theme ob dark;$me")
|
||||
out2+=("^sep()")
|
||||
out2+=("<big></big> $RANDOMIZE,obtctl randomizer;$me")
|
||||
out2+=("^sep()")
|
||||
out2+=("<big></big> $RANDOMIZE,obtctl randomizer;$me")
|
||||
|
||||
out2+=("^sep($SYSTEM_THEMES)")
|
||||
n=1
|
||||
while IFS="|" read -r abg abgto afg aline nbg nbgto nfg nline grad txtjust pheight pwidth handle bord bevel buttons fsize fname ndslimc weight slant scheme_name
|
||||
do
|
||||
((n=n+1))
|
||||
out2+=("<big><span bgcolor='${abg}' fgcolor='${afg}'><span bgcolor='${abgto}'> </span><small> <tt>$(printf '%-20s' "${scheme_name}")</tt> </small><span bgcolor='${abgto}'> </span></span> <span bgcolor='${nbgto}'> </span><span bgcolor='${nbg}' fgcolor='${nfg}'><small> <tt><i>inactive</i></tt> </small></span><span bgcolor='${nbgto}'> </span></big>,^checkout(schsys${n})")
|
||||
out3+=("^tag(schsys${n}")
|
||||
out3+=("^sep($THEME: ${scheme_name})")
|
||||
out3+=("^sep($APPLY)")
|
||||
out3+=("\"\"\"<big></big> $APPLY_THEME\"\"\",obtctl applytheme sys ${n};$me")
|
||||
out3+=("^sep()")
|
||||
out3+=("<big></big> $APPLY_SCHEME <big><span bgcolor='${abgto}'> </span><span bgcolor='${abg}'> </span><span bgcolor='${abgto}'> </span></big>,obtctl applyscheme sys ${n};$me")
|
||||
done < <(tail -n +2 "$SYSTHEMES")
|
||||
out2+=("^sep($YOUR_THEMES)")
|
||||
out2+=("<big></big> $SAVE_CURRTHEME,obtctl savetheme '${currvalues}';$me")
|
||||
out2+=("<big></big> $OPEN_THEMEFILE,xdg-open $USERTHEMES")
|
||||
out2+=("^sep()")
|
||||
n=1
|
||||
while IFS="|" read -r abg abgto afg aline nbg nbgto nfg nline grad txtjust pheight pwidth handle bord bevel buttons fsize fname ndslimc weight slant scheme_name
|
||||
do
|
||||
((n=n+1))
|
||||
out2+=("<big><span bgcolor='${abg}' fgcolor='${afg}'><span bgcolor='${abgto}'> </span><small> <tt>$(printf '%-20s' "${scheme_name}")</tt> </small><span bgcolor='${abgto}'> </span></span> <span bgcolor='${nbgto}'> </span><span bgcolor='${nbg}' fgcolor='${nfg}'><small> <tt><i>inactive</i></tt> </small></span><span bgcolor='${nbgto}'> </span></big>,^checkout(sch${n})")
|
||||
out3+=("^tag(sch${n}")
|
||||
out3+=("^sep($THEME: ${scheme_name})")
|
||||
out3+=("^sep($APPLY)")
|
||||
out3+=("\"\"\"<big></big> $APPLY_THEME\"\"\",obtctl applytheme usr ${n};$me")
|
||||
out3+=("^sep()")
|
||||
out3+=("<big></big> $APPLY_SCHEME <big><span bgcolor='${abgto}'> </span><span bgcolor='${abg}'> </span><span bgcolor='${abgto}'> </span></big>,obtctl applyscheme usr ${n};$me")
|
||||
out3+=("^sep($DELETE)")
|
||||
out3+=("<big></big> $DELETE_THEME: <i>${scheme_name}</i>,obtctl delscheme ${n};$me")
|
||||
done < <(tail -n +2 "$USERTHEMES")
|
||||
|
||||
|
||||
|
||||
out+=("^sep($TITLEBAR)")
|
||||
out+=("<big></big> $TITLEBAR_FONT [ <b> ${FNAME} ${FSIZE} </b> ],^checkout(titletext)")
|
||||
@ -406,6 +420,9 @@ out+=("^sep($INACTIVE_WINDOW)")
|
||||
out+=("<tt><span bgcolor='$NBG'> </span></tt> $INACTIVE_BG,^pipe(mbclr '$NBG' obtctl clrnormalbg '${INACTIVE_BG}' '$me')")
|
||||
[[ ! -z "$ABGTO" ]] && out+=("<tt><span bgcolor='$NBG'> </span><span bgcolor='$NBGTO'> </span></tt> $INACTIVE_BG_TO,^pipe(mbclr '$NBGTO' obtctl clrnormalbgto '${INACTIVE_BG_TO}' '$me')")
|
||||
out+=("<tt><span bgcolor='$NBG' fgcolor='$NFG'> <b>title</b> </span></tt> $TEXT_COLOR,^pipe(mbclr '$NFG' obtctl inactivetextcolor '${TEXT} ${INACTIVE_FG}' '$me')")
|
||||
out+=("^sep()")
|
||||
[[ "$WEIGHT_INACT" =~ .*"old" ]] && out+=("<big></big> <b>$BOLD</b>,obtctl fontweight_inactive Normal;$me") || out+=("<big></big> <b>$BOLD</b>,obtctl fontweight_inactive Bold;$me")
|
||||
[[ "$SLANT_INACT" =~ .*"talic" ]] && out+=("<big></big> <i>$ITALIC</i>,obtctl fontslant_inactive Normal;$me") || out+=("<big></big> <i>$ITALIC</i>,obtctl fontslant_inactive Italic;$me")
|
||||
|
||||
out+=("^sep(Gradient)")
|
||||
out+=("<big></big> $GRADIENT_TYPE [ <b>${GRAD}</b> ],^checkout(gradient)")
|
||||
@ -413,8 +430,8 @@ out+=("<tt><span bgcolor='#16a084'> </span><span bgcolor='#43a480'> </span><span
|
||||
out+=("<big></big> $GRADIENT_REVERSE,obtctl activegradient '${ABGTO}' '${ABG}';$me")
|
||||
|
||||
out+=("^sep($BORDER)")
|
||||
out+=("<tt><span bgcolor='$ALINE'> </span></tt> $ACTIVE_BORDER,^pipe(mbclr '$ALINE' obtctl activeborderColor '${ACTIVE_BORDER_COLOR}' '$me')")
|
||||
out+=("<tt><span bgcolor='$NLINE'> </span></tt> $INACTIVE_BORDER,^pipe(mbclr '$NLINE' obtctl inactiveborderColor '${INACTIVE_BORDER_COLOR}' '$me')")
|
||||
out+=("<tt><span bgcolor='$ALINE'> </span></tt> $ACTIVE_BORDER,^pipe(mbclr '$ALINE' obtctl activeborderColor '${ACTIVE_BORDER}' '$me')")
|
||||
out+=("<tt><span bgcolor='$NLINE'> </span></tt> $INACTIVE_BORDER,^pipe(mbclr '$NLINE' obtctl inactiveborderColor '${INACTIVE_BORDER}' '$me')")
|
||||
out+=("<big></big> $BORDER [ <b>$BORD</b> ],^checkout(border)")
|
||||
out+=("$HANDLEWIDTH [ <b>$HANDLE</b> ],^checkout(handlewidth)")
|
||||
#out+=("$ACTIVEHANDLE? [ <b>$AHANDLE</b> ],^checkout(handle)")
|
||||
@ -428,7 +445,7 @@ out+=("^sep($RESET)")
|
||||
out+=(" $RESET_THEME,^checkout(resettheme)")
|
||||
out2+=("^tag(resettheme)")
|
||||
out2+=("^sep($AREYOUSURE)")
|
||||
out2+=("$YES,obtctl reset;$me")
|
||||
out2+=("$YES,obtctl resetMBcolors;$me")
|
||||
fi
|
||||
#out+=("Edit...,xdg-open ${THEMERC}")
|
||||
|
||||
@ -449,8 +466,14 @@ out2+=("Dots,obtctl buttons dots;$me")
|
||||
out2+=("^sep()")
|
||||
out2+=("Big 12px,obtctl buttons big-12;$me")
|
||||
out2+=("Big 14px,obtctl buttons big-14;$me")
|
||||
out2+=("^sep($TEXTALIGN)")
|
||||
[[ "$TXTJUST" = left ]] && out2+=("<big>綠 </big> $LEFT,obtctl textjustify left;$me")||out2+=("<big>祿 </big> $LEFT,obtctl textjustify left;$me")
|
||||
[[ "$TXTJUST" = center ]] && out2+=("<big>綠 </big> $CENTER,obtctl textjustify center;$me")||out2+=("<big>祿 </big> $CENTER,obtctl textjustify center;$me")
|
||||
[[ "$TXTJUST" = right ]] && out2+=("<big>綠 </big> $RIGHT,obtctl textjustify right;$me")||out2+=("<big>祿 </big> $RIGHT,obtctl textjustify right;$me")
|
||||
|
||||
out2+=("^sep($BUTTONS_LAYOUT)")
|
||||
[[ "$NDSLIMC" == NDSLIMC ]] && out2+=("<big>綠</big> <tt>full </tt> <b>NDSLIMC</b> (default),obtctl ndslimc NDSLIMC;$me") || out2+=("<big>祿</big> <tt>full </tt> <b>NDSLIMC</b> (default),obtctl ndslimc NDSLIMC;$me")
|
||||
[[ "$NDSLIMC" == DSLIMC ]] && out2+=("<big>綠</big> <tt>full (no icon)</tt> <b>DSLIMC</b>,obtctl ndslimc DSLIMC;$me") || out2+=("<big>祿</big> <tt>full (no icon)</tt> <b>DSLIMC</b>,obtctl ndslimc DSLIMC;$me")
|
||||
[[ "$NDSLIMC" == NLIMC ]] && out2+=("<big>綠</big> <tt>mini </tt> <b>NLIMC</b>,obtctl ndslimc NLIMC;$me") || out2+=("<big>祿</big> <tt>mini </tt> <b>NLIMC</b>,obtctl ndslimc NLIMC;$me")
|
||||
[[ "$NDSLIMC" == LIMC ]] && out2+=("<big>綠</big> <tt>mini (no icon)</tt> <b>LIMC</b>,obtctl ndslimc LIMC;$me") || out2+=("<big>祿</big> <tt>mini (no icon)</tt> <b>LIMC</b>,obtctl ndslimc LIMC;$me")
|
||||
[[ "$NDSLIMC" == CMIL ]] && out2+=("<big>綠</big> <tt>crazy </tt> <b>CMIL</b>,obtctl ndslimc CMIL;$me") || out2+=("<big>祿</big> <tt>crazy </tt> <b>CMIL</b>,obtctl ndslimc CMIL;$me")
|
||||
@ -462,10 +485,6 @@ out2+=("^sep(M:<small> Maximize</small>)")
|
||||
out2+=("^sep(C:<small> Close</small>)")
|
||||
out2+=("^sep(S:<small> Shade (Roll up)</small>)")
|
||||
out2+=("^sep(D:<small> Omnipresent (On all desktops)</small>)")
|
||||
out2+=("^sep($TEXTALIGN)")
|
||||
[[ "$TXTJUST" = left ]] && out2+=("<big>綠 </big> $LEFT,obtctl textjustify left;$me")||out2+=("<big>祿 </big> $LEFT,obtctl textjustify left;$me")
|
||||
[[ "$TXTJUST" = center ]] && out2+=("<big>綠 </big> $CENTER,obtctl textjustify center;$me")||out2+=("<big>祿 </big> $CENTER,obtctl textjustify center;$me")
|
||||
[[ "$TXTJUST" = right ]] && out2+=("<big>綠 </big> $RIGHT,obtctl textjustify right;$me")||out2+=("<big>祿 </big> $RIGHT,obtctl textjustify right;$me")
|
||||
|
||||
#TEXT
|
||||
out2+=("^tag(titletext)")
|
||||
@ -484,10 +503,10 @@ done
|
||||
out2+=("^sep($FONTFAMILY)")
|
||||
|
||||
if [ -f "$HOME/.config/mabox/fonts.list" ];then
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list)
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list)
|
||||
else
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" /usr/share/mabox-colorizer/fonts.list)
|
||||
cp /usr/share/mabox-colorizer/fonts.list ~/.config/mabox/
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" /usr/share/mabox-colorizer/fonts.list)
|
||||
cp /usr/share/mabox-colorizer/fonts.list ~/.config/mabox/
|
||||
fi
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
for fon in "${favfonts[@]}";do
|
||||
@ -603,10 +622,10 @@ out+=("^sep(font family)")
|
||||
|
||||
|
||||
if [ -f "$HOME/.config/mabox/fonts.list" ];then
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list)
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list)
|
||||
else
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" /usr/share/mabox-colorizer/fonts.list)
|
||||
cp /usr/share/mabox-colorizer/fonts.list ~/.config/mabox/
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" /usr/share/mabox-colorizer/fonts.list)
|
||||
cp /usr/share/mabox-colorizer/fonts.list ~/.config/mabox/
|
||||
fi
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
for fon in "${favfonts[@]}";do
|
||||
@ -650,6 +669,7 @@ source $HOME/.config/colorizer/colorizer.conf
|
||||
|
||||
out+=("^sep()")
|
||||
out+=(" ${arrow_string_left} $_COLORIZER_ROOT,colorizer -s")
|
||||
out+=(" ${arrow_string_left} ${arrow_string_left} $_LEFTSIDEPANEL,mb-jgtools places")
|
||||
|
||||
|
||||
if [[ "$colorizer_size" == "full" ]];then
|
||||
@ -674,7 +694,7 @@ JGWIDTH=$((jgtools_padding + 270 + jgtools_padding))
|
||||
MENU_PADDING_TOP=$((jgtools_padding + 150))
|
||||
|
||||
# WALLPAPER IMAGE
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
THUMBDIR="$HOME/.cache/colorizer/thumbs"
|
||||
mkdir -p ${THUMBDIR}
|
||||
NAME=${WALLPATH////_}
|
||||
|
@ -33,7 +33,7 @@ THEMERC=~/.config/pyradio/themes/mbcolors.pyradio-theme
|
||||
# get wallpaper color palette
|
||||
WALLPALDIR="$HOME/.cache/colorizer/palettes"
|
||||
mkdir -p "$WALLPALDIR"
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
|
||||
NAME=${WALLPATH////_}
|
||||
if [[ "${NAME}" =~ ^_home_.* ]]; then
|
||||
@ -210,7 +210,7 @@ if [[ "$1" == "-s" ]]; then
|
||||
MENU_PADDING_TOP=$((jgtools_padding + 150))
|
||||
|
||||
#WALLPAPER
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
THUMBDIR="$HOME/.cache/colorizer/thumbs"
|
||||
mkdir -p ${THUMBDIR}
|
||||
NAME=${WALLPATH////_}
|
||||
|
216
bin/conkyctl
216
bin/conkyctl
@ -282,6 +282,19 @@ restartone () {
|
||||
kill ${1}
|
||||
startone ${1}
|
||||
}
|
||||
toggleone () {
|
||||
if pgrep -u $USER -af "conky .*${1}" >/dev/null; then
|
||||
kill "${1}"
|
||||
else
|
||||
CCFG=$(ls ~/.config/conky/${1}*.conkyrc)
|
||||
#notify-send.sh "Conky" "$CCFG"
|
||||
if test -f "$CCFG";
|
||||
then
|
||||
startone "$CCFG"
|
||||
fi
|
||||
#conky -c "${i}" &
|
||||
fi
|
||||
}
|
||||
makemoveableall () {
|
||||
wmctrl -k on
|
||||
sd "own_window_type.*$" "own_window_type = 'normal'," ${CONKYDIR}/*mbcolor.conkyrc
|
||||
@ -406,6 +419,8 @@ languages () {
|
||||
NEWTHEME="Nowy motyw kolorów..."
|
||||
SAVENEWTHEME="utwórz nowy motyw..."
|
||||
SAVE_CURRSCHEME="Zapisz aktualną kolorystykę jako..."
|
||||
MONOCHROMATIC="Monochromatyczny"
|
||||
CHOOSE_AND_PICK="Wybierz wariant i pobierz kolor..."
|
||||
LIGHTBG="Jasne tło"
|
||||
DARKBG="Ciemne tło"
|
||||
RESETCOLORS="Przywróć domyślne kolory"
|
||||
@ -472,6 +487,8 @@ languages () {
|
||||
NEWTHEME="New Color scheme..."
|
||||
SAVENEWTHEME="from current colors..."
|
||||
SAVE_CURRSCHEME="Save current colors as..."
|
||||
MONOCHROMATIC="Monochromatic"
|
||||
CHOOSE_AND_PICK="Choose variant and pick color..."
|
||||
LIGHTBG="Light Background"
|
||||
DARKBG="Dark Background"
|
||||
RESETCOLORS="Restore default colors"
|
||||
@ -538,6 +555,8 @@ languages () {
|
||||
NEWTHEME="New Color scheme..."
|
||||
SAVENEWTHEME="from current colors..."
|
||||
SAVE_CURRSCHEME="Save current colors as..."
|
||||
MONOCHROMATIC="Monochromatic"
|
||||
CHOOSE_AND_PICK="Choose variant and pick color..."
|
||||
LIGHTBG="Light Background"
|
||||
DARKBG="Dark Background"
|
||||
RESETCOLORS="Restore default colors"
|
||||
@ -584,7 +603,7 @@ single () {
|
||||
### Wallpaper colors
|
||||
WALLPALDIR="$HOME/.cache/colorizer/palettes"
|
||||
mkdir -p "$WALLPALDIR"
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
|
||||
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2)
|
||||
NAME=${WALLPATH////_}
|
||||
if [[ "${NAME}" =~ ^_home_.* ]]; then
|
||||
n=${#HOME}
|
||||
@ -698,28 +717,28 @@ if [[ "$OLD_SYNTAX" = "true" ]];then
|
||||
if [[ "$1" =~ "quoter" ]]; then
|
||||
case "$LANG" in
|
||||
pl*)
|
||||
FONTSIZE="Rozmiar czcionki"
|
||||
FONTSIZE="Czcionka i rozmiar"
|
||||
QUOTE_FSIZE="Cytat"
|
||||
AUTHOR_FSIZE="Autor"
|
||||
EDIT_CONF="Edytuj plik konfiguracyjny"
|
||||
RELOAD="Przeładuj"
|
||||
;;
|
||||
es*)
|
||||
FONTSIZE="Font size"
|
||||
FONTSIZE="Font size & family"
|
||||
QUOTE_FSIZE="Quote"
|
||||
AUTHOR_FSIZE="Author"
|
||||
EDIT_CONF="Edit conf file"
|
||||
RELOAD="Reload"
|
||||
;;
|
||||
*)
|
||||
FONTSIZE="Font size"
|
||||
FONTSIZE="Font size & family"
|
||||
QUOTE_FSIZE="Quote"
|
||||
AUTHOR_FSIZE="Author"
|
||||
EDIT_CONF="Edit conf file"
|
||||
RELOAD="Reload"
|
||||
;;
|
||||
esac
|
||||
Q_CFG="$HOME/.config/quoter/quoter.cfg"
|
||||
Q_CFG="$HOME/.config/quoter/quoter.conf"
|
||||
source "$Q_CFG"
|
||||
out+=("^sep($FONTSIZE)")
|
||||
out+=("$QUOTE_FSIZE [ <b>$quote_fontsize</b> ],^checkout(qsize)")
|
||||
@ -734,6 +753,22 @@ if [[ "$OLD_SYNTAX" = "true" ]];then
|
||||
for i in 10 11 12 13 14 15 16 18 20; do
|
||||
out2+=("${i},mb-setvar author_fontsize=$i $Q_CFG;conkyctl restartone ${1};$me")
|
||||
done
|
||||
#FONT FAMILY FOR QUOTER
|
||||