update
parent
848b2cfaf1
commit
f915ac37a1
|
@ -16,6 +16,9 @@ if [[ -s "$BOOKMARKS" ]]; then
|
||||||
printf '%s\n' "${dirs[@]}"
|
printf '%s\n' "${dirs[@]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# to ma być też podczas autostaru robione do pliku csv
|
||||||
virtualboxes() {
|
virtualboxes() {
|
||||||
if [[ -x "$(command -v VBoxManage)" ]]; then
|
if [[ -x "$(command -v VBoxManage)" ]]; then
|
||||||
echo "^sep(Maszyny wirtualne)"
|
echo "^sep(Maszyny wirtualne)"
|
||||||
|
@ -28,10 +31,11 @@ JGWIDTH="280"
|
||||||
|
|
||||||
#SCREENWIDTH=$(xdpyinfo | awk '/^ +dimensions/ {print $2}' | cut -d 'x' -f1)
|
#SCREENWIDTH=$(xdpyinfo | awk '/^ +dimensions/ {print $2}' | cut -d 'x' -f1)
|
||||||
|
|
||||||
|
#Poniższe, wywalić do mabox.conf który i tak jest wczytywany - uaktualiać przez usługę z autostartu + sponge z moreutils
|
||||||
OSNAME=$(lsb_release -d | awk '{print $2}')
|
OSNAME=$(lsb_release -d | awk '{print $2}')
|
||||||
OSVERSION=$(lsb_release -r | awk '{print $2}')
|
OSVERSION=$(lsb_release -r | awk '{print $2}')
|
||||||
OSCODE=$(lsb_release -c | awk '{print $2}')
|
OSCODE=$(lsb_release -c | awk '{print $2}')
|
||||||
KERNEL=$(uname -r)
|
#KERNEL=$(uname -r)
|
||||||
|
|
||||||
|
|
||||||
mkconfigfile() {
|
mkconfigfile() {
|
||||||
|
@ -58,16 +62,17 @@ menu_halign = ${MENU_HALIGN:-left}
|
||||||
|
|
||||||
item_height = ${ITEM_HEIGHT:-20}
|
item_height = ${ITEM_HEIGHT:-20}
|
||||||
item_halign = ${ITEM_HALIGN:-left}
|
item_halign = ${ITEM_HALIGN:-left}
|
||||||
|
item_padding = 4
|
||||||
item_radius = 2
|
item_radius = 2
|
||||||
arrow_string = ${ARROW_STRING:-⮞}
|
arrow_string = ${ARROW_STRING:-⮞}
|
||||||
|
|
||||||
columns = ${COLUMNS:-1}
|
columns = ${COLUMNS:-1}
|
||||||
|
|
||||||
sep_markup = font="Noto Sans Bold 10" foreground="#FFFFFF"
|
sep_markup = font="Noto Sans Bold 9" foreground="#FFFFFF"
|
||||||
font = ${FONT:-Noto Sans Medium 9}
|
font = ${FONT:-Noto Sans Medium 9}
|
||||||
icon_size = ${ICON_SIZE:-0}
|
icon_size = ${ICON_SIZE:-0}
|
||||||
|
|
||||||
color_menu_bg = ${COLOR_MENU_BG:-#222222 90}
|
color_menu_bg = ${COLOR_MENU_BG:-#222222 80}
|
||||||
color_menu_border = ${COLOR_MENU_BORDER:-#2f9b85 100}
|
color_menu_border = ${COLOR_MENU_BORDER:-#2f9b85 100}
|
||||||
color_norm_bg = ${COLOR_NORM_BG:-#000000 0}
|
color_norm_bg = ${COLOR_NORM_BG:-#000000 0}
|
||||||
color_norm_fg = ${COLOR_NORM_FG:-#CCCCCC 100}
|
color_norm_fg = ${COLOR_NORM_FG:-#CCCCCC 100}
|
||||||
|
@ -82,11 +87,12 @@ EOF
|
||||||
|
|
||||||
#MENU GŁÓWNE
|
#MENU GŁÓWNE
|
||||||
main() {
|
main() {
|
||||||
|
echo $1;
|
||||||
CONFIG_FILE=$(mktemp)
|
CONFIG_FILE=$(mktemp)
|
||||||
MENU_ITEMS=$(mktemp)
|
MENU_ITEMS=$(mktemp)
|
||||||
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
||||||
|
|
||||||
POSITION_MODE=pointer
|
POSITION_MODE=${1:-pointer}
|
||||||
HIDE_BACK_ITEMS=1
|
HIDE_BACK_ITEMS=1
|
||||||
MENU_PADDING_TOP=30
|
MENU_PADDING_TOP=30
|
||||||
MENU_PADDING_RIGHT=0
|
MENU_PADDING_RIGHT=0
|
||||||
|
@ -94,7 +100,7 @@ MENU_PADDING_BOTTOM=0
|
||||||
MENU_PADDING_LEFT=0
|
MENU_PADDING_LEFT=0
|
||||||
JGWIDTH=0
|
JGWIDTH=0
|
||||||
ITEM_HEIGHT=20
|
ITEM_HEIGHT=20
|
||||||
ICON_SIZE=16
|
[ $jgmenu_use_icons == true ] && ICON_SIZE=16
|
||||||
MENU_RADIUS=${RADIUS:-0}
|
MENU_RADIUS=${RADIUS:-0}
|
||||||
|
|
||||||
mkconfigfile
|
mkconfigfile
|
||||||
|
@ -414,7 +420,7 @@ CON='\e[?25h' #Cursor On |
|
||||||
#--------------------------------------------------------------------+
|
#--------------------------------------------------------------------+
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
main) main;;
|
main) main "$2";;
|
||||||
right) right;;
|
right) right;;
|
||||||
mblogout) mblogout;;
|
mblogout) mblogout;;
|
||||||
places) places;;
|
places) places;;
|
||||||
|
|
Loading…
Reference in New Issue