mb-jgtools/bin/jgtile
2022-07-19 23:38:35 +02:00

35 lines
996 B
Bash
Executable File

#!/bin/bash
# jgtile - jgmenu simple gui for winfuncs tile script
# Copyright (C) 2020 napcok <napcok@gmail.com>
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
ICONDIR="/usr/share/mb-jgtools/jgtile"
MENU_PADDING_TOP=8
MENU_HALIGN="center"
MENU_VALIGN="center"
#JGWIDTH=175
jgmenu_item_height=30
jgmenu_icon_size=40
item_height_factor=400
icons=1
iconmargin=4
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