diff --git a/usr/bin/jgdeskgrid b/usr/bin/jgdeskgrid index f0a62b6..a8ce92c 100755 --- a/usr/bin/jgdeskgrid +++ b/usr/bin/jgdeskgrid @@ -5,7 +5,7 @@ case $LANG in pl*) REMOVE="Usuń to menu z panelu" title="DesktopGrid - ustaw swoje okna na siatce" - help='\n\nUżyj Ctrl+Shift+Keypad_Keys aby umieszczać okna na siatce\nCtrl+Shift+LeftMouseClick w odpowiednim miejscu okna - aby przemieścić je w wybranym kierunku.\nZobacz: filmik na YT\n\nJeśli potrzebujesz większej kontroli nad pozycją i rozmiarem okien na siatce - użyj super + LeftMouseClick na wybranym oknie a następnie zaznacz prostokąt na ekranie - aby umieścić okno w danej pozycji.\nZobacz: filmik na YT\n\nKonfigurowalne usatwienia:\n- ilość kolumn\n- ilość wierszy\n- odstęp\n- odstęp zewnętrzny' + help='\n\nUżyj Ctrl+Shift+Keypad_Keys aby umieszczać okna na siatce\nCtrl+Shift+LeftMouseClick w odpowiednim miejscu okna - aby przemieścić je w wybranym kierunku.\nZobacz: filmik na YT\n\nJeśli potrzebujesz większej kontroli nad pozycją i rozmiarem okien na siatce - użyj super + LeftMouseClick na wybranym oknie a następnie zaznacz prostokąt na ekranie - aby umieścić okno w danej pozycji.\nZobacz: filmik na YT\n\nKonfigurowalne usatwienia:\n- odstęp\n- odstęp zewnętrzny' ABOUT="O DesktopGrid" SHOW_IMGHELPER="Pokaż siatkę na pulpicie" CONFIGURATION="Konfiguracja" @@ -20,7 +20,7 @@ case $LANG in es*) REMOVE="Eliminar este menú del panel" title="DesktopGrid - arrange your windows on the grid" - help='\n\nUse Ctrl+Shift+Keypad_Keys to move windows on the grid\nCtrl+Shift+LeftMouseClick on appropriate area of the window to snap it in a given direction.\nSee: video on YT\n\n If you need even more control of windows size and position on the grid - use super + LeftMouseClick on window and then draw rectangle on the screen to select new window size and position.\nSee: deskgrid preview on YT\n\nConfigurable settings:\n- columns\n- rows\n- gap\n- show_outer_gap' + help='\n\nUse Ctrl+Shift+Keypad_Keys to move windows on the grid\nCtrl+Shift+LeftMouseClick on appropriate area of the window to snap it in a given direction.\nSee: video on YT\n\n If you need even more control of windows size and position on the grid - use super + LeftMouseClick on window and then draw rectangle on the screen to select new window size and position.\nSee: deskgrid preview on YT\n\nConfigurable settings:\n- gap\n- show_outer_gap' ABOUT="About DesktopGrid" SHOW_IMGHELPER="Show image helper" CONFIGURATION="Configuration" @@ -35,7 +35,7 @@ case $LANG in *) REMOVE="Remove this menu from panel" title="DesktopGrid - arrange your windows on the grid" - help='\n\nUse Ctrl+Shift+Keypad_Keys to move windows on the grid\nCtrl+Shift+LeftMouseClick on appropriate area of the window to snap it in a given direction.\nSee: video on YT\n\n If you need even more control of windows size and position on the grid - use super + LeftMouseClick on window and then draw rectangle on the screen to select new window size and position.\nSee: deskgrid preview on YT\n\nConfigurable settings:\n- columns\n- rows\n- gap\n- show_outer_gap' + help='\n\nUse Ctrl+Shift+Keypad_Keys to move windows on the grid\nCtrl+Shift+LeftMouseClick on appropriate area of the window to snap it in a given direction.\nSee: video on YT\n\n If you need even more control of windows size and position on the grid - use super + LeftMouseClick on window and then draw rectangle on the screen to select new window size and position.\nSee: deskgrid preview on YT\n\nConfigurable settings:\n- gap\n- show_outer_gap' ABOUT="About DesktopGrid" SHOW_IMGHELPER="Show image helper" CONFIGURATION="Configuration" diff --git a/usr/bin/jgdesktops b/usr/bin/jgdesktops index 6242cee..f0a6b95 100755 --- a/usr/bin/jgdesktops +++ b/usr/bin/jgdesktops @@ -15,6 +15,9 @@ case $LANG in ADD="Dodaj nowy" REMOVE_LAST="Usuń ostatni" DESKMNGR="Menadżer sesji pulpitowych" + WALLCHANGER="Tapeta" + DESKGRID="Desktop Grid" + SCREEN_RES="Ustawienia ekranu" ;; es*) REMOVE="Eliminar este menú del panel" @@ -29,6 +32,9 @@ case $LANG in ADD="Add new desktop" REMOVE_LAST="Remove last desktop" DESKMNGR="Desktop session Manager" + WALLCHANGER="Wallpaper" + DESKGRID="Desktop Grid" + SCREEN_RES="Screen resolution" ;; *) REMOVE="Remove this menu from panel" @@ -43,9 +49,27 @@ case $LANG in ADD="Add new desktop" REMOVE_LAST="Remove last desktop" DESKMNGR="Desktop session Manager" + WALLCHANGER="Wallpaper" + DESKGRID="Desktop Grid" + SCREEN_RES="Screen settings" ;; esac +CSVFILE="$HOME/.config/mabox/jgdesktops-bottom.csv" +# If config file not exist create one with defaults +if [ ! -f $CSVFILE ]; then +cat < ${CSVFILE} +^sep() +$WALLCHANGER,^pipe(jgwallpaperchanger) +$DESKGRID,^pipe(jgdeskgrid) +$DESKMNGR,^pipe(jgdeskmngr) +^sep($SCREEN_RES) +ARandR,arandr +LXRandr,lxrandr +EOF +fi + + currdesk=$(wmctrl -d | grep "*" | awk '{print $1}') #out+=("^sep(Okna i pulpity)") @@ -90,8 +114,7 @@ out+=("^sep($MANAGE)") desktops=$(wmctrl -d |wc -l) out+=("  $ADD,wmctrl -n $((desktops+1))") out+=("  $REMOVE_LAST,wmctrl -n $((desktops-1))") -out+=("^sep()") -out+=("$DESKMNGR,^pipe(jgdeskmngr)") +out+=(". ~/.config/mabox/jgdesktops-bottom.csv") ### RUN