master
Daniel Napora 2020-02-12 12:24:04 +01:00
parent 848b2cfaf1
commit f915ac37a1
1 changed files with 12 additions and 6 deletions

View File

@ -16,6 +16,9 @@ if [[ -s "$BOOKMARKS" ]]; then
printf '%s\n' "${dirs[@]}"
fi
}
# to ma być też podczas autostaru robione do pliku csv
virtualboxes() {
if [[ -x "$(command -v VBoxManage)" ]]; then
echo "^sep(Maszyny wirtualne)"
@ -28,10 +31,11 @@ JGWIDTH="280"
#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}')
OSVERSION=$(lsb_release -r | awk '{print $2}')
OSCODE=$(lsb_release -c | awk '{print $2}')
KERNEL=$(uname -r)
#KERNEL=$(uname -r)
mkconfigfile() {
@ -58,16 +62,17 @@ menu_halign = ${MENU_HALIGN:-left}
item_height = ${ITEM_HEIGHT:-20}
item_halign = ${ITEM_HALIGN:-left}
item_padding = 4
item_radius = 2
arrow_string = ${ARROW_STRING:-⮞}
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}
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_norm_bg = ${COLOR_NORM_BG:-#000000 0}
color_norm_fg = ${COLOR_NORM_FG:-#CCCCCC 100}
@ -82,11 +87,12 @@ EOF
#MENU GŁÓWNE
main() {
echo $1;
CONFIG_FILE=$(mktemp)
MENU_ITEMS=$(mktemp)
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
POSITION_MODE=pointer
POSITION_MODE=${1:-pointer}
HIDE_BACK_ITEMS=1
MENU_PADDING_TOP=30
MENU_PADDING_RIGHT=0
@ -94,7 +100,7 @@ MENU_PADDING_BOTTOM=0
MENU_PADDING_LEFT=0
JGWIDTH=0
ITEM_HEIGHT=20
ICON_SIZE=16
[ $jgmenu_use_icons == true ] && ICON_SIZE=16
MENU_RADIUS=${RADIUS:-0}
mkconfigfile
@ -414,7 +420,7 @@ CON='\e[?25h' #Cursor On |
#--------------------------------------------------------------------+
case "$1" in
main) main;;
main) main "$2";;
right) right;;
mblogout) mblogout;;
places) places;;