Mabox tools based on Jgmenu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mb-jgtools/bin/jgtile

35 lines
996 B

3 years ago
#!/bin/bash
# jgtile - jgmenu simple gui for winfuncs tile script
2 years ago
# Copyright (C) 2020 napcok <napcok@gmail.com>
3 years ago
2 years ago
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
3 years ago
2 years ago
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
3 years ago
ICONDIR="/usr/share/mb-jgtools/jgtile"
2 years ago
MENU_PADDING_TOP=8
3 years ago
MENU_HALIGN="center"
MENU_VALIGN="center"
#JGWIDTH=175
jgmenu_item_height=30
jgmenu_icon_size=40
11 months ago
item_height_factor=400
icons=1
iconmargin=4
3 years ago
mkconfigfile
cat <<EOF > ${MENU_ITEMS}
^sep(Tile helper (W-A-t))
Tile,winfuncs tile,$ICONDIR/tile.png
Tile Two (equal),winfuncs tiletwo,$ICONDIR/tiletwo.png
Tile Two (Left wider),winfuncs tiletwol,$ICONDIR/tiletwol.png
Tile Two (Right wider),winfuncs tiletwor,$ICONDIR/tiletwor.png
Tile Three,winfuncs tilethree,$ICONDIR/tilethree.png
Tile Three vertical,winfuncs tilethreev,$ICONDIR/tilethreev.png
Stack Two, winfuncs stacktwo,$ICONDIR/stacktwo.png
Cascade, winfuncs cascade,$ICONDIR/cascade.png
EOF
jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} 2>/dev/null
exit 0