snap app window to L or R screen with keystroke?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
gychang
Posts: 414
Joined: Sat 29 Nov 2008, 20:30
Location: San Diego, CA

snap app window to L or R screen with keystroke?

#1 Post by gychang »

Using BionicPup64, version 8. I have setup to move an app to R or L half of screen by using JWMDesk Manager snap function. However I would like to see if it is possible using a keystroke combination (e.g. Ctrl-R arrow) to do the same...
Attachments
snap.png
(117.02 KiB) Downloaded 133 times
Last edited by gychang on Wed 06 May 2020, 16:35, edited 2 times in total.
---
trying to learn puppylinux... :D
---

HerrBert
Posts: 152
Joined: Thu 03 Nov 2016, 15:11
Location: NRW, Germany

#2 Post by HerrBert »

I have set keyboardshortcuts in /root/.jwm/jwmrc-personal to:

Code: Select all

<Key mask="4" key="Left">maxleft</Key>
<Key mask="4" key="Right">maxright</Key>
where mask="4" is my keycode 115 = Super_L in /root/.Xmodmap
What it does:
Left Windowskey + (Arrow)Left maximizes active Window to left half of Desktop, left Windodwskey + (Arrow)Right maximize active Window to right half of Desktop.
If you change the "mask=" to "C", it should behave as you suggested...

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#3 Post by disciple »

Edit]beaten to it [/edit]
Wow, I'm so out of the loop - didn't realise jwm supports aero snap now. Does it snap to corners or just sides?
I see what you want is possible if you just edit the jwm config to add key bindings for these actions:

Code: Select all

maxtop	Maximize window to the top half of the screen.
maxbottom	Maximize window to the bottom half of the screen.
maxleft	Maximize window to the left half of the screen.
maxright	Maximize window to the right half of the screen.
But have a look first - there may already be key bindings for them.

Or for other methods (e.g. other window managers, or snapping to corners) see http://murga-linux.com/puppy/viewtopic. ... 316#972316, or perhaps http://murga-linux.com/puppy/viewtopic. ... 579#939579
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#4 Post by bigpup »

JWMDesk Manager>Desktop tab->JWM Hotkey
Attachments
Screenshot.jpg
(30.53 KiB) Downloaded 98 times
Screenshot(1).jpg
(39.31 KiB) Downloaded 99 times
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
gychang
Posts: 414
Joined: Sat 29 Nov 2008, 20:30
Location: San Diego, CA

#5 Post by gychang »

HerrBert wrote:I have set keyboardshortcuts in /root/.jwm/jwmrc-personal to:

Code: Select all

<Key mask="4" key="Left">maxleft</Key>
<Key mask="4" key="Right">maxright</Key>
where mask="4" is my keycode 115 = Super_L in /root/.Xmodmap
What it does:
Left Windowskey + (Arrow)Left maximizes active Window to left half of Desktop, left Windodwskey + (Arrow)Right maximize active Window to right half of Desktop.
If you change the "mask=" to "C", it should behave as you suggested...
works great!, thanks.
---
trying to learn puppylinux... :D
---

User avatar
gychang
Posts: 414
Joined: Sat 29 Nov 2008, 20:30
Location: San Diego, CA

doesn't work in Precise-Light

#6 Post by gychang »

I actually had this thread as solved in BionicPup64, now I am on Precise-Lite on a 32bit laptop.

Modifying jwmrc-personal now does not work. any help?

thanks
---
trying to learn puppylinux... :D
---

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#7 Post by disciple »

Is it actually included by the main jwm config file?
Do other changes in it work?
What do you get if you run `jwm -p` in a terminal?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#8 Post by MochiMoppel »

maxleft and maxright are not supported in the JWM version used by Precise.
Try to change the binary /usr/bin/jwm with a newer version (those found in newer 32bit Puppies may work).

Post Reply