This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Windows snapping how to change?

Tags: snap snap snap
(comma "," separated)
User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS

Windows snapping how to change?

Sun Jun 09, 2013 9:57 pm
Hi,

KDE by default snaps windows on the screen in 3 modes (without desktop effect which snaps to screen center):
  • 2 vertical half
  • 4 quarter
  • 1 vertical half and 2 quarters

Is there any way to customize snapping modes? If yes, How can I do it?

PS
  • I don't want to write my own script for god sake :D
  • I'm asking for that because during recordring snapshots I need an easy & quick way to snap windows inside recordring area (my desktop resolution is 1600*900 while record area is 1024*768)

Last edited by mbnoimi on Sun Jun 09, 2013 10:10 pm, edited 1 time in total.
User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS

Re: Windows docking how to change?

Sun Jun 09, 2013 10:07 pm
I not sure what if I used the right term "dock" I think the correct one is "snap" is it?
http://img19.imageshack.us/img19/7497/desktop1001.png
luebking
Karma
0

Re: Windows snapping how to change?

Mon Jun 10, 2013 8:17 pm
If i got you right you want arrange windows inside 1024x768+0+0 by using quick tiling?
That's not possible.
We'd either have to cover huge screen portions with the sensitive areas (what means they'd be lost for regular usage) or you would have much fun pushing against that 1px wide invisible border (which sitll would make two thin areas inside your desktop inaccessible)

The simple solutions here are:
a) align screen and record area: "xrandr -s 1024x768" (changes resolution, "xrandr -s 1600x900" to reset)
b) add some strutting panels to restrict the workspace to 1024x768 (ie. 132px high on the bottom and 576px wide on the right; maybe have an extra activity to show/hide them?)
User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS

Re: Windows snapping how to change?

Tue Jun 11, 2013 1:34 am
luebking wrote:If i got you right you want arrange windows inside 1024x768+0+0 by using quick tiling?

Yes, exactly.

luebking wrote:The simple solutions here are:
a) align screen and record area: "xrandr -s 1024x768" (changes resolution, "xrandr -s 1600x900" to reset)
b) add some strutting panels to restrict the workspace to 1024x768 (ie. 132px high on the bottom and 576px wide on the right; maybe have an extra activity to show/hide them?)

I could know how to do that!!! I tried to use these steps as you explained above but they didn't fix the issue:
  • Right click on the desktop -> Activities
  • Create Activity -> Clone the current activity
  • Switched to the new activity then System Settings -> Display and Monitor -> HDMI size (from 1600x900 -> 1027x768) -> Apply (now the resolution of the screen changed)
  • Right click on the desktop -> Add Panel -> Empty Panel
  • Switched to the old activity... it appeared in 1027x768 resolution!!!
luebking
Karma
0

Re: Windows snapping how to change?

Tue Jun 11, 2013 7:15 am
those solutions were meant as alternatives, i doubt it's possible to bind the resolution to activities - might be possible with new kscreen instead of krandr.
for quick resolution changing, try krandrtray or bind a shortcut to the xrandr commands (or a tiny bash script that toggles between them)
User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS

Re: Windows snapping how to change?

Tue Jun 11, 2013 7:28 am
luebking wrote:those solutions were meant as alternatives, i doubt it's possible to bind the resolution to activities - might be possible with new kscreen instead of krandr.
for quick resolution changing, try krandrtray or bind a shortcut to the xrandr commands (or a tiny bash script that toggles between them)

Hmm... do you suggest any solution for knowing record's borders (ex. widget)?
luebking
Karma
0

Re: Windows snapping how to change?

Tue Jun 11, 2013 7:53 pm
Hmm... do you suggest any solution for knowing record's borders (ex. widget)?

Can we have the english version of that question, please? ;-)

If you reduce the screen resolution to xga (1024x768) and your recording application records xga, it suddenly records the entire screen.
Where it records what will depend on the screen recording application - and i don't even know which that would be (nor could probably help you here, I once fired recordmydesktop and that's been it for my personal expertise on that topic =)
User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS

Re: Windows snapping how to change?

Wed Jun 12, 2013 2:48 am
Can we have the english version of that question, please? ;-)

Simply,

I'm using Kazam which doesn't shows borders of recording area while recordmydesktop does. I asked before more than that, I asked for customized snapping area not default KDE snappings.
luebking
Karma
0

Re: Windows snapping how to change?

Sat Jun 15, 2013 8:54 pm
Sorry for the delay.
I'm still not entirely sure what you mean. If you shrinked the entire screen to XGA and Kazam records XGA you'll record the entire desktop.
If you wonder where the xga portion of your screen is, you could use a resp. wallpaper (they contain rectangles with regularily used resolutions and are used by UI designers to check the maximizd look on different minor resolutions)
If you want to contrain windows into the XGA area, you could add panels to the bottom and right, compensating the additional size.

If Kazam chooses a random region on your screen (ie. 1024x768+x+y | x,y : random) without indicating the least which region that would be, i'd ask the Kazam devs to leave you a minimal chance to know what you're recording ;-)
User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS

Re: Windows snapping how to change?

Sun Jun 16, 2013 5:20 am
I'm still not entirely sure what you mean. If you shrinked the entire screen to XGA and Kazam records XGA you'll record the entire desktop.

OMG, it's so simple matter. I want to snap windows (or at least show borders) to specified area without changing screen resolution ex. I've 1600x900 screen and I want to record a sreencast with size 1027x768 as shown in this screenshot.
Image

Can I do that by KDE?

Default snapping areas in KDE are:
Image
luebking
Karma
0

Re: Windows snapping how to change?

Thu Jun 20, 2013 9:55 pm
OMG, it's so simple matter.


Because you did not ask
"can the quick tile ratios be adjusted"
but
for a "way to snap windows inside recordring area".

And no, you can't - but you can show the window geometry on resizing the window (what you apparently want) and also nearly every X11 applications would support
Code: Select all
kwrite --geometry 1024x768+0+0


Also in my very first comment i told you a way to restrict the snapping area nevertheless, by restricting the workspace:

b) add some strutting panels to restrict the workspace to 1024x768 (ie. 132px high on the bottom and 576px wide on the right; maybe have an extra activity to show/hide them?)


Now, if it is so "OMG" simple: why did you not understand that or just ask for what you actually wanted in the first place?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar