jgdeskgrid
parent
58487da5cb
commit
756ec3e7ed
|
@ -52,7 +52,7 @@ esac
|
||||||
|
|
||||||
CONFIG_DIR="$HOME/.config/deskgrid"
|
CONFIG_DIR="$HOME/.config/deskgrid"
|
||||||
CONFIG_FILE="$CONFIG_DIR/deskgrid.cfg"
|
CONFIG_FILE="$CONFIG_DIR/deskgrid.cfg"
|
||||||
#mkdir -p $CONFIG_DIR
|
mkdir -p $CONFIG_DIR
|
||||||
if [ ! -f $CONFIG_FILE ]; then
|
if [ ! -f $CONFIG_FILE ]; then
|
||||||
cat <<EOF > ${CONFIG_FILE}
|
cat <<EOF > ${CONFIG_FILE}
|
||||||
# Gap between windows in pixels (reasonable values: 0 8 16 24)
|
# Gap between windows in pixels (reasonable values: 0 8 16 24)
|
||||||
|
@ -60,9 +60,7 @@ gap=16
|
||||||
# Grid columns (12 16 24)
|
# Grid columns (12 16 24)
|
||||||
columns=12
|
columns=12
|
||||||
# Grid rows (6 12 16)
|
# Grid rows (6 12 16)
|
||||||
rows=6
|
rows=12
|
||||||
#
|
|
||||||
titlebar_height=18
|
|
||||||
#Notifications true or false
|
#Notifications true or false
|
||||||
notifications=true
|
notifications=true
|
||||||
# Outer gap (disable if you use WM margins)
|
# Outer gap (disable if you use WM margins)
|
||||||
|
@ -74,8 +72,7 @@ fi
|
||||||
source <(grep = $CONFIG_FILE)
|
source <(grep = $CONFIG_FILE)
|
||||||
GAP=${gap:-16}
|
GAP=${gap:-16}
|
||||||
COL=${columns:-12}
|
COL=${columns:-12}
|
||||||
ROWS=${rows:-6}
|
ROWS=${rows:-12}
|
||||||
TITLEBAR_HEIGHT=${titlebar_height:-18}
|
|
||||||
|
|
||||||
me="jgdeskgrid -s"
|
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+=("$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+=("$SHOW_IMGHELPER,drawgrid")
|
||||||
out+=("^sep($CONFIGURATION)")
|
out+=("^sep($CONFIGURATION)")
|
||||||
out+=("$LCOLUMNS [ <b>$COL</b> ],^checkout(columns)")
|
#out+=("$LCOLUMNS [ <b>$COL</b> ],^checkout(columns)")
|
||||||
out+=("$LROWS [ <b>$ROWS</b> ],^checkout(rows)")
|
#out+=("$LROWS [ <b>$ROWS</b> ],^checkout(rows)")
|
||||||
out+=("$LGAP [ <b>$GAP</b> ],^checkout(gap)")
|
out+=("$LGAP [ <b>$GAP</b> ],^checkout(gap)")
|
||||||
out+=("$OUTER_GAP [ <b>$show_outer_gap</b> ],^checkout(outer)")
|
out+=("$OUTER_GAP [ <b>$show_outer_gap</b> ],^checkout(outer)")
|
||||||
out+=("$NOTIFY [ <b>$notifications</b> ],^checkout(notify)")
|
out+=("$NOTIFY [ <b>$notifications</b> ],^checkout(notify)")
|
||||||
out+=("^sep()")
|
out+=("^sep()")
|
||||||
out+=("$EDITCONF,geany $CONFIG_FILE")
|
out+=("$EDITCONF,geany $CONFIG_FILE")
|
||||||
|
|
||||||
out2+=("^tag(columns)")
|
#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
|
#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)")
|
#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
|
#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)")
|
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+=("^tag(outer)")
|
||||||
out2+=("$(printf "<tt>%3s</tt>,%s" "true" "mb-setvar show_outer_gap=true $CONFIG_FILE;$me")")
|
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")")
|
out2+=("$(printf "<tt>%3s</tt>,%s" "false" "mb-setvar show_outer_gap=false $CONFIG_FILE;$me")")
|
||||||
|
|
Loading…
Reference in New Issue