From 756ec3e7ed3a9e2b0f4cb2c64527912b6328fc7f Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sun, 13 Feb 2022 00:02:42 +0100 Subject: [PATCH] jgdeskgrid --- usr/bin/jgdeskgrid | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/usr/bin/jgdeskgrid b/usr/bin/jgdeskgrid index 9b4258f..f0a62b6 100755 --- a/usr/bin/jgdeskgrid +++ b/usr/bin/jgdeskgrid @@ -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 < ${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 [ $COL ],^checkout(columns)") -out+=("$LROWS [ $ROWS ],^checkout(rows)") +#out+=("$LCOLUMNS [ $COL ],^checkout(columns)") +#out+=("$LROWS [ $ROWS ],^checkout(rows)") out+=("$LGAP [ $GAP ],^checkout(gap)") out+=("$OUTER_GAP [ $show_outer_gap ],^checkout(outer)") out+=("$NOTIFY [ $notifications ],^checkout(notify)") out+=("^sep()") out+=("$EDITCONF,geany $CONFIG_FILE") -out2+=("^tag(columns)") -for i in 8 12 16 24 32; do out2+=("$(printf "%3s,%s" "$i" "mb-setvar columns=${i} $CONFIG_FILE;$me")");done -out2+=("^tag(rows)") -for i in 6 8 12 16 24; do out2+=("$(printf "%3s,%s" "$i" "mb-setvar rows=${i} $CONFIG_FILE;$me")");done +#out2+=("^tag(columns)") +#for i in 8 12 16 24 32; do out2+=("$(printf "%3s,%s" "$i" "mb-setvar columns=${i} $CONFIG_FILE;$me")");done +#out2+=("^tag(rows)") +#for i in 6 8 12 16 24; do out2+=("$(printf "%3s,%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 "%3s,%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 "%3s,%s" "$i" "mb-setvar gap=${i} $CONFIG_FILE;$me")");done out2+=("^tag(outer)") out2+=("$(printf "%3s,%s" "true" "mb-setvar show_outer_gap=true $CONFIG_FILE;$me")") out2+=("$(printf "%3s,%s" "false" "mb-setvar show_outer_gap=false $CONFIG_FILE;$me")")