mabox-pipemenus/usr/bin/jgmenusettings-pipe

401 lines
16 KiB
Plaintext
Raw Normal View History

2020-09-07 16:55:43 +02:00
#!/bin/bash
. $HOME/.config/mabox/mabox.conf
case $LANG in
pl*)
TITLE="Ustawienia Menu i Paneli"
MENU_ITEMS="Elementy Menu"
OWN_COMMANDS="własne komendy"
2021-01-14 18:55:20 +01:00
FAVORITES="Ulubione"
MAINMENU="Menu główne"
2021-01-27 12:55:13 +01:00
APPS="Programy"
APPS_POS="Pokaż programy w..."
APPS_MAIN="...menu głównym"
APPS_SUB="...submenu"
LEFTPANEL="Lewy panel"
RIGHTPANEL="Prawy panel"
EXITMENU="Dialog wylogowania"
JGBROWSER="Przeglądarka plików/katalogów"
SHOW_HIDDEN="Wyświetlanie ukrytych plików"
EDIT="Edytuj"
TOP="Góra"
BOTTOM="Dół"
MODULES="Moduły"
RESET="Przywróć domyślne ustawienia"
QUICK_NAV="Szybka nawigacja"
2021-01-12 19:14:01 +01:00
BOOKMARKS="Zakładki GTK"
VBOXES="Maszyny Wirtualne"
PIPEMENUS="Dynamiczne <i>(pipe)</i> menu"
POPINSTALL="Instaluj popularne programy"
SYSINFO="Informacje o systemie"
SHORTCUTS="Skróty klawiszowe"
2021-01-27 12:55:13 +01:00
MENUPANELS="Ustawienia Menu/Paneli bocznych"
TINT2="Ustawienia panelu Tint2"
2021-01-27 12:55:13 +01:00
SSH_CONN="Połączenia SSH"
LOOKANDFEEL="Wygląd"
BORDER="Obramowanie"
2021-01-14 18:55:20 +01:00
PADDING="Margines wewnętrzny"
2021-01-12 16:42:42 +01:00
RADIUS="Zaokrąglone rogi"
TOPMARGIN="Margines Paneli Góra/Dół"
SUBSPACING="Odstęp submenu"
2020-09-07 16:55:43 +02:00
ICONS="Ikony"
2020-10-01 11:48:08 +02:00
CIRCLE="Okrągłe ikony (Numix)"
SQUARE="Kwadratowe ikony (Numix)"
2020-09-07 16:55:43 +02:00
SHOW_ICONS="Pokaż ikony"
HIDE_ICONS="Ukryj ikony"
2020-10-01 11:48:08 +02:00
INSTALL_SARDI="Instaluj sardi-icons"
2020-09-07 16:55:43 +02:00
SIZE="Rozmiar i czcionka"
TINY="malutki"
SMALL="mały"
NORMAL="normalny"
BIG="duży"
HUGE="wielki"
FONT_FAMILY="Czcionka"
COLOR_SCHEME="Schemat kolorystyczny"
2021-01-17 13:39:57 +01:00
GRADIENT="Gradient"
2020-09-07 16:55:43 +02:00
EDIT_CURRENT="Edytuj aktywny"
FOLLOW_OB="Zgodny z motywem OpenBox"
CHOOSE="Wybierz..."
2020-09-22 13:11:45 +02:00
REMOVE="Usuń to menu z panelu"
2020-09-07 16:55:43 +02:00
;;
es*)
TITLE="Menu/Panel lateral"
MENU_ITEMS="Menu Items"
OWN_COMMANDS="Custom Commands"
2021-01-14 18:55:20 +01:00
FAVORITES="Favoritos"
MAINMENU="Main Menu"
2021-01-27 12:55:13 +01:00
APPS="Applicationes"
APPS_POS="Show Applications in..."
APPS_MAIN="...mainmenu"
APPS_SUB="...submenu"
LEFTPANEL="Left panel"
RIGHTPANEL="Right panel"
2021-01-12 16:42:42 +01:00
EXITMENU="Logout Dialog"
JGBROWSER="File/Directory Browser"
SHOW_HIDDEN="Show hidden files"
EDIT="Editar"
TOP="TOP"
BOTTOM="BOTTOM"
MODULES="Modules"
RESET="Reset to default"
QUICK_NAV="Navegación rápida"
2021-01-12 19:14:01 +01:00
BOOKMARKS="GTK Marcadores"
2021-01-12 16:42:42 +01:00
VBOXES="Virtual Machines"
PIPEMENUS="Menu con extras"
POPINSTALL="Instalar Programas populares"
SYSINFO="System information"
SHORTCUTS="Atajos del teclado"
2021-01-27 12:55:13 +01:00
MENUPANELS="Menu/Paneles laterales"
TINT2="Tint2 panel settings"
2021-01-27 12:55:13 +01:00
SSH_CONN="SSH Connections"
LOOKANDFEEL="Apariencia"
BORDER="Menu Border"
2021-01-14 18:55:20 +01:00
PADDING="Padding"
2021-01-12 16:42:42 +01:00
RADIUS="Rounded Corners"
TOPMARGIN="Panels Top/Bottom Margin"
SUBSPACING="Submenu Spacing"
2020-09-10 14:58:34 +02:00
ICONS="Iconos"
2020-10-01 11:48:08 +02:00
CIRCLE="Circilo iconos (Numix)"
SQUARE="Cuadrado iconos (Numix)"
2020-09-10 14:58:34 +02:00
SHOW_ICONS="Mostrar iconos"
HIDE_ICONS="Ocultar iconos"
2020-10-01 11:48:08 +02:00
INSTALL_SARDI="Instalar sardi-icons"
2020-09-07 16:55:43 +02:00
SIZE="Tamaño de Menu/Panel lateral"
TINY="Diminuto"
SMALL="Pequeño"
NORMAL="Normal"
BIG="Grande"
HUGE="Muy Grande"
2020-09-10 14:58:34 +02:00
FONT_FAMILY="Familia tipográfica"
COLOR_SCHEME="Esquema de colores"
2021-01-17 13:39:57 +01:00
GRADIENT="Gradient"
2020-09-27 22:41:13 +02:00
EDIT_CURRENT="Editar el actual"
FOLLOW_OB="Similiar al de Openbox"
CHOOSE="Elegir..."
2020-09-22 13:11:45 +02:00
REMOVE="Eliminar este menú del panel"
2020-09-07 16:55:43 +02:00
;;
*)
TITLE="Menu/Panels settings"
MENU_ITEMS="Menu Items"
OWN_COMMANDS="Custom Commands"
2021-01-14 18:55:20 +01:00
FAVORITES="Favorites"
MAINMENU="Main Menu"
2021-01-27 12:55:13 +01:00
APPS="Applications"
APPS_POS="Show Applications in..."
APPS_MAIN="...mainmenu"
APPS_SUB="...submenu"
LEFTPANEL="Left Panel "
RIGHTPANEL="Right Panel"
EXITMENU="Logout Dialog"
JGBROWSER="File/Directory Browser"
SHOW_HIDDEN="Show hidden files"
EDIT="Edit"
TOP="Top"
BOTTOM="Bottom"
MODULES="Modules"
RESET="Reset to default"
QUICK_NAV="Quick Navigation"
2021-01-12 19:14:01 +01:00
BOOKMARKS="GTK Bookmarks"
VBOXES="Virtual Machines"
PIPEMENUS="Pipe (dynamic) menus"
POPINSTALL="Install popular apps"
SYSINFO="System information"
SHORTCUTS="Keyboard shortcuts"
2021-01-27 12:55:13 +01:00
MENUPANELS="Menu/Sidepanels settings"
TINT2="Tint2 panel settings"
2021-01-27 12:55:13 +01:00
SSH_CONN="SSH Connections"
LOOKANDFEEL="Look and Feel"
BORDER="Menu Border"
2021-01-14 18:55:20 +01:00
PADDING="Padding"
2021-01-12 16:42:42 +01:00
RADIUS="Rounded Corners"
TOPMARGIN="Panels Top/Bottom Margin"
SUBSPACING="Submenu Spacing"
2020-09-07 16:55:43 +02:00
ICONS="Icons"
2020-10-01 11:48:08 +02:00
CIRCLE="Circle icons (Numix)"
SQUARE="Square icons (Numix)"
2020-09-07 16:55:43 +02:00
SHOW_ICONS="Show icons"
HIDE_ICONS="Hide icons"
2020-10-01 11:48:08 +02:00
INSTALL_SARDI="Install sardi-icons"
2020-09-07 16:55:43 +02:00
SIZE="Menu/Sidepanels Size and Font"
TINY="tiny"
SMALL="small"
NORMAL="normal"
BIG="big"
HUGE="huge"
FONT_FAMILY="Font Family"
COLOR_SCHEME="Color Scheme"
2021-01-17 13:39:57 +01:00
GRADIENT="Gradient position"
2020-09-07 16:55:43 +02:00
EDIT_CURRENT="Edit current"
FOLLOW_OB="Same as OpenBox theme"
CHOOSE="Choose..."
2020-09-22 13:11:45 +02:00
REMOVE="Remove this menu from panel"
2020-09-07 16:55:43 +02:00
;;
esac
me="mb-jgtools $jgtools_last"
L="mb-jgtools places"
R="mb-jgtools right"
2021-01-12 16:42:42 +01:00
2020-09-07 16:55:43 +02:00
#out+=("^sep($TITLE)")
case $menu_font_size in
7) t="";;
8) s="";;
9) n="";;
10) b="";;
11) h="";;
*);;
2020-09-07 16:55:43 +02:00
esac
## NOWE ....
#out+=("^sep()")
out+=("^sep($MENU_ITEMS)")
out+=("$MAINMENU,^checkout(mainmenu_edit)")
out+=("$LEFTPANEL,^checkout(left_edit)")
out+=("$RIGHTPANEL,^checkout(right_edit)")
out+=("$EXITMENU,^checkout(exit_edit)")
out+=("^sep($JGBROWSER)")
[[ $jgbrowser_show_hidden = false ]] && out+=("<i><s>$SHOW_HIDDEN</s></i>,mb-setvar jgbrowser_show_hidden=true;$me") || out+=("$SHOW_HIDDEN,mb-setvar jgbrowser_show_hidden=false;$me")
out2+=("^tag(mainmenu_edit)")
out2+=("^sep($MAINMENU)")
2021-01-14 18:55:20 +01:00
out2+=("$EDIT $FAVORITES, geany $HOME/.config/mabox/favorites.csv, geany")
2021-01-27 12:55:13 +01:00
out2+=("^sep($APPS_POS)")
out2+=("$APPS_MAIN,mb-setvar apps_in_submenu=false;mb-jgtools main ipc")
out2+=("$APPS_SUB,mb-setvar apps_in_submenu=true;mb-jgtools main ipc")
2021-01-12 19:14:01 +01:00
out2+=("^sep(Reset)")
out2+=("$RESET,mb-reset mainmenu")
out2+=("^tag(left_edit)")
out2+=("^sep($LEFTPANEL)")
out2+=("$EDIT $OWN_COMMANDS ($TOP), geany $HOME/.config/mabox/places-prepend.csv, geany")
2021-01-14 20:03:28 +01:00
#out2+=("^sep()")
out2+=("^sep($MODULES)")
[[ $places_quicknav == false ]] && out2+=("<i><s>$QUICK_NAV</s></i>,mb-setvar places_quicknav=true;$L") || out2+=("$QUICK_NAV,mb-setvar places_quicknav=false;$L")
[[ $places_bookmarks == false ]] && out2+=("<i><s>$BOOKMARKS</s></i>,mb-setvar places_bookmarks=true;$L") || out2+=("$BOOKMARKS,mb-setvar places_bookmarks=false;$L")
[[ $places_vboxes == false ]] && out2+=("<i><s>$VBOXES</s></i>,mb-setvar places_vboxes=true;$L") || out2+=("$VBOXES,mb-setvar places_vboxes=false;$L")
2021-01-12 19:14:01 +01:00
out2+=("^sep($PIPEMENUS)")
2021-01-27 12:55:13 +01:00
[[ $places_menusettingspipe = false ]] && out2+=("<i><s>$MENUPANELS</s></i>,mb-setvar places_menusettingspipe=true;$L") || out2+=("$MENUPANELS,mb-setvar places_menusettingspipe=false;$L")
[[ $places_tint2pipe = false ]] && out2+=("<i><s>$TINT2</s></i>,mb-setvar places_tint2pipe=true;$L") || out2+=("$TINT2,mb-setvar places_tint2pipe=false;$L")
[[ $places_sysinfopipe = false ]] && out2+=("<i><s>$SYSINFO</s></i>,mb-setvar places_sysinfopipe=true;$L") || out2+=("$SYSINFO,mb-setvar places_sysinfopipe=false;$L")
[[ $places_keyspipe = false ]] && out2+=("<i><s>$SHORTCUTS</s></i>,mb-setvar places_keyspipe=true;$L") || out2+=("$SHORTCUTS,mb-setvar places_keyspipe=false;$L")
2021-01-27 12:55:13 +01:00
[[ $places_sshpipe = false ]] && out2+=("<i><s>$SSH_CONN</s></i>,mb-setvar places_sshpipe=true;$L") || out2+=("$SSH_CONN,mb-setvar places_sshpipe=false;$L")
[[ $places_softwarepipe = false ]] && out2+=("<i><s>$POPINSTALL</s></i>,mb-setvar places_softwarepipe=true;$L") || out2+=("$POPINSTALL,mb-setvar places_softwarepipe=false;$L")
out2+=("^sep()")
out2+=("$EDIT $OWN_COMMANDS ($BOTTOM), geany $HOME/.config/mabox/places-append.csv, geany")
2021-01-12 19:14:01 +01:00
out2+=("^sep(Reset)")
out2+=("$RESET,mb-reset leftpanel")
out2+=("^tag(right_edit)")
out2+=("^sep($RIGHTPANEL)")
out2+=("$EDIT $OWN_COMMANDS ($TOP), geany $HOME/.config/mabox/right-prepend.csv, geany")
out2+=("$EDIT $OWN_COMMANDS ($BOTTOM), geany $HOME/.config/mabox/right-append.csv, geany")
2021-01-12 19:14:01 +01:00
out2+=("^sep(Reset)")
out2+=("$RESET,mb-reset rightpanel")
out2+=("^tag(exit_edit)")
out2+=("^sep($EXITMENU)")
out2+=("$EDIT $EXITMENU, geany $HOME/.config/mabox/exit.csv, geany")
2021-01-12 19:14:01 +01:00
out2+=("^sep(Reset)")
out2+=("$RESET,mb-reset logout")
2021-01-12 19:14:01 +01:00
##
out+=("^sep($LOOKANDFEEL)")
out+=("$BORDER [ <b>${jgtools_border:-0}</b> ],^checkout(mborder)")
2021-01-14 18:55:20 +01:00
out+=("$PADDING [ <b>${jgtools_padding:-0}</b> ],^checkout(mpadding)")
2021-01-12 16:42:42 +01:00
out+=("$RADIUS [ <b>${jgtools_radius:-0}</b> ],^checkout(mradius)")
out+=("$TOPMARGIN [ <b>${panels_topmargin:-0}</b> ],^checkout(topmargin)")
out+=("$SUBSPACING [ <b>${submenu_spacing:-0}</b> ],^checkout(subspacing)")
out2+=("^tag(mborder)")
#for i in 0 1 2 3 4; do out2+=("${i},mb-setvar jgtools_border=${i};$me");done
2021-01-17 13:39:57 +01:00
for i in 0 1 2 3 4 5 6 8 10 12; do out2+=("$(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar jgtools_border=${i};$me")");done
2021-01-14 18:55:20 +01:00
out2+=("^tag(mpadding)")
#for i in 0 1 2 3 4; do out2+=("${i},mb-setvar jgtools_border=${i};$me");done
2021-01-19 01:17:42 +01:00
for i in 0 2 4 6 8 10 12 14 16 18 20 22 24 28 32 40; do out2+=("$(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar jgtools_padding=${i};$me")");done
2021-01-14 18:55:20 +01:00
2021-01-12 16:42:42 +01:00
out2+=("^tag(mradius)")
2021-01-17 13:39:57 +01:00
for i in 0 1 2 3 4 6 8 12 14 16 18 20 40; do out2+=("$(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar jgtools_radius=${i};$me")");done
2021-01-12 16:42:42 +01:00
out2+=("^tag(topmargin)")
2021-01-19 01:17:42 +01:00
for i in 0 20 30 40 50 60 80 100 120 160 200; do out2+=("$(printf "<tt>%4s</tt>,%s" "$i" "mb-setvar panels_topmargin=${i};$me")");done
#for i in 0 20 30 40 50 60 80 100; do out2+=("${i},mb-setvar panels_topmargin=${i};$me");done
out2+=("^tag(subspacing)")
2021-01-17 13:39:57 +01:00
for i in -8 -6 -4 -2 0 1 2 4 6 8 10 12 14 16 18 20; do out2+=("$(printf "<tt>%4s</tt>,%s" "$i" "mb-setvar submenu_spacing=${i};$me")");done
#for i in -8 -6 -4 -2 0 1 2 3 4 5 6; do out2+=("${i},mb-setvar submenu_spacing=${i};$me");done
out+=("^sep(<i>$SIZE</i>)")
out+=(" $t <small><small>$TINY</small></small>,mb-setvar menu_font_size=7;mb-setvar jgmenu_item_height=14;mb-setvar jgmenu_icon_size=14;mb-setvar sep_height=1;mb-setvar item_margin_y=0;$me
$s <small>$SMALL</small>,mb-setvar menu_font_size=8;mb-setvar jgmenu_item_height=16;mb-setvar jgmenu_icon_size=16;mb-setvar sep_height=1;mb-setvar item_margin_y=0;$me
$n $NORMAL,mb-setvar menu_font_size=9;mb-setvar jgmenu_item_height=18;mb-setvar jgmenu_icon_size=18;mb-setvar sep_height=1;mb-setvar item_margin_y=1;$me
2021-01-17 13:39:57 +01:00
$b <big>$BIG</big>,mb-setvar menu_font_size=10;mb-setvar jgmenu_item_height=20;mb-setvar jgmenu_icon_size=20;mb-setvar sep_height=1;mb-setvar item_margin_y=2;$me
$h <big><big>$HUGE</big></big>,mb-setvar menu_font_size=11;mb-setvar jgmenu_item_height=22;mb-setvar jgmenu_icon_size=22;mb-setvar sep_height=2;mb-setvar item_margin_y=2;$me")
2020-09-07 16:55:43 +02:00
#out+=("^sep($FONT_FAMILY)")
######### FONT FAMILY
out+=("^sep()")
out+=("$FONT_FAMILY,^checkout(fonty)")
case $menu_font_family in
"Noto Sans Light") nol="";;
"Noto Sans Medium") nom="";;
Jet*) je="";;
Aut*) au="";;
Deja*) de="";;
Robo*) ro="";;
Inco*) in="";;
*);;
2020-09-07 16:55:43 +02:00
esac
out2+=("^tag(fonty)")
out2+=("^sep($FONT_FAMILY)")
out2+=("<span size=\"x-large\" font_family=\"Noto Sans Light\">$nol Noto Sans Light</span>,mb-setvar \"menu_font_family='Noto Sans Light'\";$me")
out2+=("<span size=\"x-large\" font_family=\"Noto Sans Medium\">$nom Noto Sans Medium</span>,mb-setvar \"menu_font_family='Noto Sans Medium'\";$me")
out2+=("<span size=\"x-large\" font_family=\"JetBrains Mono Regular\">$je JetBrains Mono Regular</span>,mb-setvar \"menu_font_family='JetBrains Mono Regular'\";$me")
out2+=("<span size=\"x-large\" font_family=\"Autour One\">$au Autour One</span>,mb-setvar \"menu_font_family='Autour One'\";$me")
out2+=("<span size=\"x-large\" font_family=\"DejaVu Serif\">$de DejaVu Serif</span>,mb-setvar \"menu_font_family='DejaVu Serif'\";$me")
out2+=("<span size=\"x-large\" font_family=\"Roboto Light\">$ro Roboto Light</span>,mb-setvar \"menu_font_family='Roboto Light'\";$me")
out2+=("<span size=\"x-large\" font_family=\"Inconsolata\">$in Inconsolata</span>,mb-setvar menu_font_family=Inconsolata;$me")
2020-09-07 16:55:43 +02:00
2021-01-17 13:39:57 +01:00
########## THEMES
out+=("^sep(<i>$COLOR_SCHEME</i>)")
ob_file=$HOME/.config/openbox/rc.xml
[[ -f $ob_file ]] && wm_theme=$(awk '/<theme>/ {while (getline n) {if (match(n, /<name>/)){l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$ob_file")
2021-01-17 14:50:27 +01:00
out+=("$CHOOSE,^checkout(motywy)")
if [ $jgmenu_theme != obtheme ]; then #INNY NIŻ OB THEME
. $HOME/.config/mabox/jgobthemes/${jgmenu_theme}.colorrc
2021-01-17 13:39:57 +01:00
out+=("$EDIT_CURRENT: (<i>$jgmenu_theme</i>),geany $HOME/.config/mabox/jgobthemes/$jgmenu_theme.colorrc,geany")
out+=("<s>$FOLLOW_OB</s>,mb-setvar jgmenu_theme=obtheme;$me
^sep()")
2021-01-17 14:50:27 +01:00
out+=("$GRADIENT [ <b>${menu_gradient_pos:-none}</b> ],^checkout(gradient)")
out2+=("^tag(gradient)")
for i in none top right bottom left top_left top_right bottom_left bottom_right; do out2+=("$(printf "<tt>%14s</tt>,%s" "$i" "mb-setvar menu_gradient_pos=${i} $HOME/.config/mabox/jgobthemes/$jgmenu_theme.colorrc;$me")");done
out2+=("^tag(motywy)")
2021-01-17 13:39:57 +01:00
else
2021-01-17 14:50:27 +01:00
. $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc
out+=("#${menu_gradient_pos}\n")
2021-01-17 13:39:57 +01:00
out+=("$EDIT_CURRENT: (<i>${wm_theme// /_}</i>),geany $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc,geany")
out+=("$FOLLOW_OB,mb-setvar jgmenu_theme=obtheme;$me
^sep()")
out+=("$GRADIENT [ <b>${menu_gradient_pos:-none}</b> ],^checkout(gradient)")
out2+=("^tag(gradient)")
for i in none top right bottom left top_left top_right bottom_left bottom_right; do out2+=("$(printf "<tt>%14s</tt>,%s" "$i" "mb-setvar menu_gradient_pos=${i} $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc;$me")");done
out2+=("^tag(motywy)")
2021-01-17 14:50:27 +01:00
fi
2021-01-17 13:39:57 +01:00
for item in "$HOME"/.config/mabox/jgobthemes/*colorrc; do
theme="${item##*/}"
out2+=("${theme%.*},mb-setvar jgmenu_theme=${theme%.*};$me")
done
2020-09-07 16:55:43 +02:00
########## ICONS
out+=("^sep(<i>$ICONS</i>)")
2020-09-07 16:55:43 +02:00
if [ $jgmenu_use_icons == true ]; then
out+=("$HIDE_ICONS,mb-setvar jgmenu_use_icons=false;$me")
2020-09-07 16:55:43 +02:00
else
out+=("$SHOW_ICONS,mb-setvar jgmenu_use_icons=true;$me")
2020-09-07 16:55:43 +02:00
fi
out+=("^sep()")
out+=("$SQUARE,mb-setvar jgmenu_icon_theme=Numix-Square;mb-setvar jgmenu_use_icons=true;$me")
out+=("$CIRCLE,mb-setvar jgmenu_icon_theme=Numix-Circle;mb-setvar jgmenu_use_icons=true;$me")
2020-10-01 11:48:08 +02:00
if [ -d /usr/share/icons/Sardi-Arc ];then
out+=("^sep()")
out+=("Sardi,^checkout(sardi)")
out2+=("^tag(sardi)")
out2+=("Sardi,mb-setvar jgmenu_icon_theme=Sardi;mb-setvar jgmenu_use_icons=true;$me")
out2+=("Sardi-Orb-Colora,mb-setvar jgmenu_icon_theme=Sardi-Orb-Colora;mb-setvar jgmenu_use_icons=true;$me")
out2+=("Sardi-Flat,mb-setvar jgmenu_icon_theme=Sardi-Flat;mb-setvar jgmenu_use_icons=true;$me")
out2+=("Sardi-Flexible,mb-setvar jgmenu_icon_theme=Sardi-Flexible;mb-setvar jgmenu_use_icons=true;$me")
out2+=("Sardi-Mono,mb-setvar jgmenu_icon_theme=Sardi-Mono;mb-setvar jgmenu_use_icons=true;$me")
2020-10-01 11:48:08 +02:00
else
out+=("^sep()")
out+=("$INSTALL_SARDI, pamac-installer sardi-icons")
2020-09-07 16:55:43 +02:00
fi
2020-09-07 16:55:43 +02:00
2020-09-15 22:35:22 +02:00
### RUN
2020-09-07 16:55:43 +02:00
2020-09-15 22:35:22 +02:00
if [ $1 == "-s" ]; then
2020-09-22 13:11:45 +02:00
. /usr/bin/pipemenu-standalone.cfg
2020-09-15 22:35:22 +02:00
MENU_PADDING_TOP=0
MENU_HALIGN="center"
MENU_VALIGN="center"
jgmenu_icon_size=0
mkconfigfile
cat <<EOF > ${MENU_ITEMS}
$(printf '%s\n' "${out[@]}")
$(printf '%s\n' "${out2[@]}")
EOF
jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} 2>/dev/null
exit 0
fi
2020-09-07 16:55:43 +02:00
printf '%s\n' "${out[@]}"
2020-09-22 13:11:45 +02:00
if [ $1 == "-r" ]; then
printf '%s\n' "^sep()"
printf '%s\n' "<i>$REMOVE</i>,mb-setvar places_menusettingspipe=false"
fi
2020-09-07 16:55:43 +02:00
printf '%s\n' "${out2[@]}"
2021-01-27 12:55:13 +01:00
printf '%s\n' "${out3[@]}"