jgdeskgrid

master
Daniel Napora 2022-02-13 00:02:42 +01:00
parent 58487da5cb
commit 756ec3e7ed
1 changed files with 10 additions and 13 deletions

View File

@ -52,7 +52,7 @@ esac
CONFIG_DIR="$HOME/.config/deskgrid"
CONFIG_FILE="$CONFIG_DIR/deskgrid.cfg"
#mkdir -p $CONFIG_DIR
mkdir -p $CONFIG_DIR
if [ ! -f $CONFIG_FILE ]; then
cat <<EOF > ${CONFIG_FILE}
# Gap between windows in pixels (reasonable values: 0 8 16 24)
@ -60,9 +60,7 @@ gap=16
# Grid columns (12 16 24)
columns=12
# Grid rows (6 12 16)
rows=6
#
titlebar_height=18
rows=12
#Notifications true or false
notifications=true
# Outer gap (disable if you use WM margins)
@ -74,8 +72,7 @@ fi
source <(grep = $CONFIG_FILE)
GAP=${gap:-16}
COL=${columns:-12}
ROWS=${rows:-6}
TITLEBAR_HEIGHT=${titlebar_height:-18}
ROWS=${rows:-12}
me="jgdeskgrid -s"
@ -83,20 +80,20 @@ out+=("^sep(DesktopGrid)")
out+=("$ABOUT,notify-send.sh -u critical -i mbcc '$title' '$help' -o '$SHOW_IMGHELPER:drawgrid' -o '$EDITCONF:geany ~/.config/deskgrid/deskgrid.cfg'")
out+=("$SHOW_IMGHELPER,drawgrid")
out+=("^sep($CONFIGURATION)")
out+=("$LCOLUMNS [ <b>$COL</b> ],^checkout(columns)")
out+=("$LROWS [ <b>$ROWS</b> ],^checkout(rows)")
#out+=("$LCOLUMNS [ <b>$COL</b> ],^checkout(columns)")
#out+=("$LROWS [ <b>$ROWS</b> ],^checkout(rows)")
out+=("$LGAP [ <b>$GAP</b> ],^checkout(gap)")
out+=("$OUTER_GAP [ <b>$show_outer_gap</b> ],^checkout(outer)")
out+=("$NOTIFY [ <b>$notifications</b> ],^checkout(notify)")
out+=("^sep()")
out+=("$EDITCONF,geany $CONFIG_FILE")
out2+=("^tag(columns)")
for i in 8 12 16 24 32; do out2+=("$(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar columns=${i} $CONFIG_FILE;$me")");done
out2+=("^tag(rows)")
for i in 6 8 12 16 24; do out2+=("$(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar rows=${i} $CONFIG_FILE;$me")");done
#out2+=("^tag(columns)")
#for i in 8 12 16 24 32; do out2+=("$(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar columns=${i} $CONFIG_FILE;$me")");done
#out2+=("^tag(rows)")
#for i in 6 8 12 16 24; do out2+=("$(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar rows=${i} $CONFIG_FILE;$me")");done
out2+=("^tag(gap)")
for i in 0 2 4 8 12 16 24 32 40; do out2+=("$(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar gap=${i} $CONFIG_FILE;$me")");done
for i in 0 4 8 10 16 20 24 32 40; do out2+=("$(printf "<tt>%3s</tt>,%s" "$i" "mb-setvar gap=${i} $CONFIG_FILE;$me")");done
out2+=("^tag(outer)")
out2+=("$(printf "<tt>%3s</tt>,%s" "true" "mb-setvar show_outer_gap=true $CONFIG_FILE;$me")")
out2+=("$(printf "<tt>%3s</tt>,%s" "false" "mb-setvar show_outer_gap=false $CONFIG_FILE;$me")")