update deskgrid

master
Daniel Napora 2021-05-14 20:44:00 +02:00
parent 6843f14174
commit a70eb59fc7
2 changed files with 3 additions and 3 deletions

View File

@ -85,6 +85,6 @@ xdotool windowmove $WINDOW $POSITION
xdotool windowmap $WINDOW xdotool windowmap $WINDOW
if [ $enable_notifications = true ]; then 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\ 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"
Position: <b>$POSITION</b>\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 "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: <b>$POSITION</b>\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 fi

View File

@ -40,7 +40,7 @@ magick -size $AVAILSIZE xc:LavenderBlush3 -stroke LavenderBlush2 -strokewidth 1
-style Normal +stroke -pointsize 14 -fill gray16 -draw "$text" \ -style Normal +stroke -pointsize 14 -fill gray16 -draw "$text" \
/tmp/grid.png /tmp/grid.png
feh -N -x --title "DrawGrid helper" /tmp/grid.png > /dev/null 2>&1 & feh -N -x --title "DrawGrid helper" /tmp/grid.png > /dev/null 2>&1 &
sleep .2 sleep 1
dupa=$(wmctrl -l -p |grep "DrawGrid helper") dupa=$(wmctrl -l -p |grep "DrawGrid helper")
#echo "$dupa" #echo "$dupa"
read -r A B C D< <(echo $dupa) read -r A B C D< <(echo $dupa)