diff --git a/bin/deskgrid b/bin/deskgrid index 5e25f45..b97a398 100755 --- a/bin/deskgrid +++ b/bin/deskgrid @@ -7,7 +7,6 @@ CONFIG_FILE="$HOME/.config/superclick.cfg" -mkdir -p $CONFIG_DIR if [ ! -f $CONFIG_FILE ]; then cat < ${CONFIG_FILE} # Gap between windows in pixels (reasonable values: 0 8 16 24) diff --git a/bin/deskmngr b/bin/deskmngr index aa1fdc2..dadd127 100755 --- a/bin/deskmngr +++ b/bin/deskmngr @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (C) Daniel Napora 2021-22 +# Copyright (C) Daniel Napora 2021-24 # https://maboxlinux.org #: deskmngr - save all programs (windows) running on current desktop in session file. #: With windows positions and state (decorated or not) diff --git a/bin/superclick b/bin/superclick index ed2fb7b..7c8bf9f 100755 --- a/bin/superclick +++ b/bin/superclick @@ -142,7 +142,7 @@ clicksnap() { Win_height="$HEIGHT" if [[ $Mouse_x -gt $Win_x && $Mouse_x -lt $((Win_x+WIDTH)) && $Mouse_y -gt $Win_y && $Mouse_y -lt $((Win_y+HEIGHT)) ]];then - pos_x="$(((Mouse_x-Win_x)/(Win_width/3)))" + pos_x="$(((Mouse_x-Win_x)/(Win_width/3)))" pos_y="$(((Mouse_y-Win_y)/(Win_height/3)))" POS_CODE="$pos_x$pos_y" else @@ -164,6 +164,49 @@ moveto() { POS_CODE="$1" _getwin +} +trainer(){ +case "$LANG" in + pl*) + TITLE="Trener Superclick" + MOUSE="przytrzymaj klawisz super i kliknij w wybrany obszar okna

...kolejne kliknięcia zmieniają rozmiar" + KEYB="z klawiatury: Super + KP_1..9" + ;; + *) + TITLE="SuperClick trainer" + MOUSE="hold Super key and click in appropriate area
of any window

...subsequent clicks change the size" + KEYB="with keyboard: Super + KP_1..9" + ;; +esac + +HTML_FILE=$(mktemp /tmp/superclickXXXXX) + +cat < ${HTML_FILE} + + + + +
+
+
+
+
+

${MOUSE}

+
+
+

${KEYB}

+
+
+EOF +yhtml "${HTML_FILE}" "${TITLE}" } usage() { grep "^#:" $0 | while read DOC; do printf '%s\n' "${DOC###:}"; done @@ -171,7 +214,8 @@ usage() { } case "$1" in - "") clicksnap ;; + "") clicksnap ;; topleft|top|topright|left|center|right|bottomleft|bottom|bottomright) moveto "$1" ;; - -h|--help) usage ;; + trainer) trainer;; + -h|--help) usage ;; esac diff --git a/mabox/help/Quick_tiling.html b/mabox/help/Quick_tiling.html index 612b749..5b3968e 100644 --- a/mabox/help/Quick_tiling.html +++ b/mabox/help/Quick_tiling.html @@ -1,48 +1,14 @@ - - - - - - -
+ font-weight:bold;line-height: 5vh;position:relative;} +.grid-container > div.item5 span {position:absolute;left: 50%;transform: translate(-50%, 0);width:100%;} +.grid-container > div:hover {background-color: #113344;color: yellow;} + +
@@ -52,8 +18,6 @@ left: 50%;
-
- - +