mb-jgtools/bin/jgtile

35 lines
996 B
Plaintext
Raw Permalink Normal View History

2020-09-30 22:44:41 +02:00
#!/bin/bash
# jgtile - jgmenu simple gui for winfuncs tile script
2021-01-12 15:54:11 +01:00
# Copyright (C) 2020 napcok <napcok@gmail.com>
2020-09-30 22:44:41 +02:00
2021-09-24 01:52:13 +02:00
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
2020-09-30 22:44:41 +02:00
2021-01-12 15:54:11 +01:00
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
2020-09-30 22:44:41 +02:00
ICONDIR="/usr/share/mb-jgtools/jgtile"
2021-01-12 15:54:11 +01:00
MENU_PADDING_TOP=8
2020-09-30 22:44:41 +02:00
MENU_HALIGN="center"
MENU_VALIGN="center"
#JGWIDTH=175
jgmenu_item_height=30
jgmenu_icon_size=40
2022-07-19 23:38:35 +02:00
item_height_factor=400
icons=1
iconmargin=4
2020-09-30 22:44:41 +02:00
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