superclick changes
parent
d386eec298
commit
6badb4fd22
|
@ -1,17 +1,15 @@
|
|||
#!/bin/bash
|
||||
# jgdeskgrid - configure DeskGrid from menu
|
||||
# jgdeskgrid - configure SuperClick / DeskGrid from menu
|
||||
#
|
||||
case $LANG in
|
||||
pl*)
|
||||
REMOVE="Usuń to menu z panelu"
|
||||
title="DesktopGrid - ustaw swoje okna na siatce"
|
||||
help='\n\nUżyj <b>Ctrl+Shift+Keypad_Keys</b> aby umieszczać okna na siatce\n<b>Ctrl+Shift+LeftMouseClick</b> w odpowiednim miejscu okna - aby przemieścić je w wybranym kierunku.\nZobacz: <a href="https://youtu.be/UzgUYYXnRww">filmik na YT</a>\n\nJeśli potrzebujesz większej kontroli nad pozycją i rozmiarem okien na siatce - użyj <b>super + LeftMouseClick</b> na wybranym oknie a następnie zaznacz prostokąt na ekranie - aby umieścić okno w danej pozycji.\nZobacz: <a href="https://youtu.be/Ba_lV-M0I2o">filmik na YT</a>\n\nKonfigurowalne usatwienia:\n- odstęp\n- odstęp zewnętrzny'
|
||||
ABOUT="O DesktopGrid"
|
||||
title="SuperClick - ustaw swoje okna na siatce"
|
||||
help='\n\nUżyj <b>Super + Keypad_Keys</b> aby umieszczać okna na siatce\n<b>Super + LewyKlikMyszy</b> w odpowiednim miejscu okna - aby przemieścić je w wybranym kierunku.\n\nJeśli potrzebujesz większej kontroli nad pozycją i rozmiarem okien na siatce - użyj <b>Ctrl+Shift+LewyKlikMyszy</b> na wybranym oknie a następnie zaznacz prostokąt na ekranie - aby umieścić okno w danej pozycji.\n\nKonfigurowalne usatwienia:\n- odstęp\n- odstęp zewnętrzny'
|
||||
ABOUT="O SuperClick"
|
||||
SHOW_IMGHELPER="Pokaż siatkę na pulpicie"
|
||||
QUICK_TILE="Trener szybkiego tilingu"
|
||||
QUICK_TILE="Trener SuperClick"
|
||||
CONFIGURATION="Konfiguracja"
|
||||
LCOLUMNS="Kolumny"
|
||||
LROWS="Wiersze"
|
||||
LGAP="Odstęp"
|
||||
OUTER_GAP="Zewnętrzny odstęp"
|
||||
NOTIFY="Powiadomienia"
|
||||
|
@ -20,14 +18,12 @@ case $LANG in
|
|||
;;
|
||||
es*)
|
||||
REMOVE="Eliminar este menú del panel"
|
||||
title="DesktopGrid - arrange your windows on the grid"
|
||||
help='\n\nUse <b>Ctrl+Shift+Keypad_Keys</b> to move windows on the grid\n<b>Ctrl+Shift+LeftMouseClick</b> on appropriate area of the window to snap it in a given direction.\nSee: <a href="https://youtu.be/UzgUYYXnRww">video on YT</a>\n\n If you need even more control of windows size and position on the grid - use <b>super + LeftMouseClick</b> on window and then draw rectangle on the screen to select new window size and position.\nSee: <a href="https://youtu.be/Ba_lV-M0I2o">deskgrid preview on YT</a>\n\nConfigurable settings:\n- gap\n- show_outer_gap'
|
||||
ABOUT="About DesktopGrid"
|
||||
title="SuperClick - arrange your windows quickly"
|
||||
help='\n\nUse <b>Super+Keypad_Keys</b> to move windows on the grid\n<b>Super+LeftMouseClick</b> on appropriate area of the window to snap it in a given direction.\n\n If you need even more control of windows size and position on the grid - use <b>Ctrl+Shift+LeftMouseClick</b> on window and then draw rectangle on the screen to select new window size and position.\n\nConfigurable settings:\n- gap\n- show_outer_gap'
|
||||
ABOUT="About SuperClick"
|
||||
SHOW_IMGHELPER="Show image helper"
|
||||
QUICK_TILE="Quick tiling trainer"
|
||||
QUICK_TILE="SuperClick trainer"
|
||||
CONFIGURATION="Configuration"
|
||||
LCOLUMNS="Columns"
|
||||
LROWS="Rows"
|
||||
LGAP="Gap between windows"
|
||||
OUTER_GAP="Show outer gap"
|
||||
NOTIFY="Notifications"
|
||||
|
@ -36,14 +32,12 @@ case $LANG in
|
|||
;;
|
||||
*)
|
||||
REMOVE="Remove this menu from panel"
|
||||
title="DesktopGrid - arrange your windows on the grid"
|
||||
help='\n\nUse <b>Ctrl+Shift+Keypad_Keys</b> to move windows on the grid\n<b>Ctrl+Shift+LeftMouseClick</b> on appropriate area of the window to snap it in a given direction.\nSee: <a href="https://youtu.be/UzgUYYXnRww">video on YT</a>\n\n If you need even more control of windows size and position on the grid - use <b>super + LeftMouseClick</b> on window and then draw rectangle on the screen to select new window size and position.\nSee: <a href="https://youtu.be/Ba_lV-M0I2o">deskgrid preview on YT</a>\n\nConfigurable settings:\n- gap\n- show_outer_gap'
|
||||
ABOUT="About DesktopGrid"
|
||||
SHOW_IMGHELPER="Show image helper"
|
||||
QUICK_TILE="Quick tiling trainer"
|
||||
title="SuperClick - arrange your windows quickly"
|
||||
help='\n\nUse <b>Super+Keypad_Keys</b> to move windows on the grid\n<b>Super+LeftMouseClick</b> on appropriate area of the window to snap it in a given direction.\n\n If you need even more control of windows size and position on the grid - use <b>Ctrl+Shift+LeftMouseClick</b> on window and then draw rectangle on the screen to select new window size and position.\n\nConfigurable settings:\n- gap\n- show_outer_gap'
|
||||
ABOUT="About SuperClick"
|
||||
SHOW_IMGHELPER="Show DesktopGrid image"
|
||||
QUICK_TILE="SuperClick trainer"
|
||||
CONFIGURATION="Configuration"
|
||||
LCOLUMNS="Columns"
|
||||
LROWS="Rows"
|
||||
LGAP="Gap between windows"
|
||||
OUTER_GAP="Show outer gap"
|
||||
NOTIFY="Notifications"
|
||||
|
@ -53,17 +47,11 @@ case $LANG in
|
|||
esac
|
||||
|
||||
|
||||
CONFIG_DIR="$HOME/.config/deskgrid"
|
||||
CONFIG_FILE="$CONFIG_DIR/deskgrid.cfg"
|
||||
mkdir -p $CONFIG_DIR
|
||||
CONFIG_FILE="$HOME/.config/superclick.cfg"
|
||||
if [ ! -f $CONFIG_FILE ]; then
|
||||
cat <<EOF > ${CONFIG_FILE}
|
||||
# Gap between windows in pixels (reasonable values: 0 8 16 24)
|
||||
gap=16
|
||||
# Grid columns (12 16 24)
|
||||
columns=12
|
||||
# Grid rows (6 12 16)
|
||||
rows=12
|
||||
#Notifications true or false
|
||||
notifications=true
|
||||
# Outer gap (disable if you use WM margins)
|
||||
|
@ -79,10 +67,10 @@ ROWS=${rows:-12}
|
|||
|
||||
me="jgdeskgrid -s"
|
||||
|
||||
out+=("^sep(DesktopGrid)")
|
||||
out+=("<big></big> $ABOUT,notify-send.sh -u critical -i mbcc '$title' '$help' -o '$SHOW_IMGHELPER:drawgrid' -o '$EDITCONF:xdg-open ~/.config/deskgrid/deskgrid.cfg'")
|
||||
out+=("^sep(SuperClick)")
|
||||
out+=("<big></big> $ABOUT,notify-send.sh -u critical -i mbcc '$title' '$help' -o '$SHOW_IMGHELPER:drawgrid' -o '$EDITCONF:xdg-open $CONFIG_FILE'")
|
||||
out+=("<big></big> $QUICK_TILE,superclick trainer")
|
||||
out+=("<big></big> $SHOW_IMGHELPER,drawgrid")
|
||||
out+=("<big></big> $QUICK_TILE,yhtml /usr/share/mabox/help/Quick_tiling.html 'Mabox Quick tiling trainer - Ctrl + Shift + click'")
|
||||
out+=("^sep($CONFIGURATION)")
|
||||
|
||||
out+=("$LGAP [ <b>$GAP</b> ],^checkout(gap)")
|
||||
|
@ -101,7 +89,7 @@ if [[ "$1" == "-s" ]]; then
|
|||
. $HOME/.config/mabox/mabox.conf
|
||||
|
||||
out+=("^sep()")
|
||||
out+=(" ⮜ $LEFTPANEL,mb-jgtools places")
|
||||
out+=(" $LEFTPANEL,mb-jgtools places")
|
||||
|
||||
if [[ $panels_heightpos == "top" ]]; then
|
||||
MENU_VALIGN="top"
|
||||
|
|
|
@ -113,7 +113,7 @@ if [ "$1" == "-s" ]; then
|
|||
. $HOME/.config/mabox/mabox.conf
|
||||
|
||||
out+=("^sep()")
|
||||
out+=(" ⮜ $LEFTPANEL,mb-jgtools places")
|
||||
out+=(" $LEFTPANEL,mb-jgtools places")
|
||||
|
||||
if [[ $panels_heightpos == "top" ]]; then
|
||||
MENU_VALIGN="top"
|
||||
|
|
|
@ -239,7 +239,7 @@ fi
|
|||
|
||||
out+=("^sep($TOOLS)")
|
||||
out+=("<big></big> $WALLCHANGER,^pipe(jgwallpaperchanger)")
|
||||
out+=("<big></big> $DESKGRID,^pipe(jgdeskgrid)")
|
||||
out+=("<big></big> SuperClick,^pipe(jgdeskgrid)")
|
||||
out+=("<big></big> $DESKMNGR,^pipe(jgdeskmngr)")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue