From a70eb59fc7a14b2f8c64e797372c55028ab0df09 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Fri, 14 May 2021 20:44:00 +0200 Subject: [PATCH] update deskgrid --- bin/deskgrid | 4 ++-- bin/drawgrid | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/deskgrid b/bin/deskgrid index 08383ca..0155143 100755 --- a/bin/deskgrid +++ b/bin/deskgrid @@ -85,6 +85,6 @@ xdotool windowmove $WINDOW $POSITION xdotool windowmap $WINDOW if [ $enable_notifications = true ]; then -notify-send.sh -t 15000 --replace-file=/tmp/deskgrid --icon=mbcc "Success notification" "You can disable those notifications by editing config file. Button below.\nScreensize: $SCREENSIZE\nMargins: $MARGINS\nAvailable size: $AVAILSIZE\nGrid: $((AVAIL_X/GRID_X)) x $((AVAIL_Y/GRID_Y)) Selection: $slop\n\ -Position: $POSITION\n($start_x*$AVAIL_X/$GRID_X+$GAP_X+$MARGIN_X)\n($start_y*$AVAIL_Y/$GRID_Y+$GAP_Y+$MARGIN_Y) \nSize: $SIZE" -o "Disable notifications:mb-setvar enable_notifications=false ~/.config/deskgrid/deskgrid.conf" -o "Edit config file:geany ~/.config/deskgrid/deskgrid.conf" +notify-send.sh -t 15000 --replace-file=/tmp/deskgrid --icon=mbcc "Info" "You can disable those notifications or edit config file using buttons below.\n\n" -o "Disable notifications:mb-setvar enable_notifications=false ~/.config/deskgrid/deskgrid.conf" -o "Edit DeskGrid config file:geany ~/.config/deskgrid/deskgrid.conf" +#notify-send.sh -t 15000 --replace-file=/tmp/deskgrid --icon=mbcc "Success notification" "You can disable those notifications by editing config file. Button below.\nScreensize: $SCREENSIZE\nMargins: $MARGINS\nAvailable size: $AVAILSIZE\nGrid: $((AVAIL_X/GRID_X)) x $((AVAIL_Y/GRID_Y)) Selection: $slop\nPosition: $POSITION\n($start_x*$AVAIL_X/$GRID_X+$GAP_X+$MARGIN_X)\n($start_y*$AVAIL_Y/$GRID_Y+$GAP_Y+$MARGIN_Y) \nSize: $SIZE" -o "Disable notifications:mb-setvar enable_notifications=false ~/.config/deskgrid/deskgrid.conf" -o "Edit config file:geany ~/.config/deskgrid/deskgrid.conf" fi diff --git a/bin/drawgrid b/bin/drawgrid index bc66c23..bb070e3 100755 --- a/bin/drawgrid +++ b/bin/drawgrid @@ -40,7 +40,7 @@ magick -size $AVAILSIZE xc:LavenderBlush3 -stroke LavenderBlush2 -strokewidth 1 -style Normal +stroke -pointsize 14 -fill gray16 -draw "$text" \ /tmp/grid.png feh -N -x --title "DrawGrid helper" /tmp/grid.png > /dev/null 2>&1 & -sleep .2 +sleep 1 dupa=$(wmctrl -l -p |grep "DrawGrid helper") #echo "$dupa" read -r A B C D< <(echo $dupa)