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

Change Desktop While Moving Window

1

Votes
1
0
Tags: move window, change desktop move window, change desktop move window, change desktop
(comma "," separated)
holysword
Registered Member
Posts
2
Karma
0

Change Desktop While Moving Window

Sat Feb 25, 2012 11:01 am
I'm proposing this just because it seems to be a slight detail to implement.

Suppose that your shortcut for changing to desktop 1 is Alt + 1. Suppose you are dragging a window around (holding click on its title bar, for instance). If you dare to press Alt + 1, nothing happens. Actually if you want to move a window from a desktop to another, you have to right click title bar, go to "move to desktop..." then choose the desktop you want to move.

If you could simply press Alt + 1 (or whatever shortcut you have) and change desktop while carrying the window with you, that would make my life (and hopefully other people's life) easier.
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

Change Desktop While Moving Window

Sat Feb 25, 2012 3:54 pm
Actually you can set shortcuts to move the focused window in System Settings -> Shortcuts and Gestures -> Global Keyboard Shortcuts -> KWin -> Window to Desktop <n>.

You can also enable "Switch desktop on edge" (System Settings -> Workspace Behavior -> Screen Edges) to drag windows to the previous/next virtual desktop.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
the.holysword
Registered Member
Posts
12
Karma
0
Sorry for necromancing this, but it is not the same thing to send a window to another desktop and to simply move it. Dragging the window on the edge is not the same either, specially if you have 4 or more desktops. This doesn't seem to be a very complicated thing to implement (maybe I'm wrong there though) or perhaps there is a way to script this behaviour somewhere in SystemSettings?

This feature and recognizing my extra mouse buttons are the two features that keep me from topping KDE as my favourite WM.
EDIT#1: Oh, and the fact that I cannot have independent virtual desktops in a multiscreen scenario (that is, when I change desktop, I change it on all screens).

Last edited by the.holysword on Mon Mar 23, 2015 6:46 pm, edited 1 time in total.
User avatar
google01103
Manager
Posts
6668
Karma
25
the.holysword wrote:<snip>This feature and recognizing my extra mouse buttons are the two features that keep me from topping KDE as my favourite WM.


have you looked at Easystroke? Btnx (depreciated)? other less gui methods?

what tools do other wm's/de's provide for config'ing mouse buttons?


OpenSuse Leap 42.1 x64, Plasma 5.x

the.holysword
Registered Member
Posts
12
Karma
0
E17~E19 recognize the mouse buttons out of the box. Easystroke gets the events, but I still couldn't figure out what to do with that, since I'm not really aiming at remaping them to keystrokes or commands.

As an example, I use one of the mouse buttons to move, and another to resize. If it would be possible in KDE to remap the "button 9 press" to "alt+button 1 press" and "button 9 release" to "alt + button 1 release" then it would be all good, but so far I have been failing to find anything that can tell the difference between a click or a press+release.
User avatar
google01103
Manager
Posts
6668
Karma
25
nothing I am familiar with but maybe something like this https://github.com/thjaeger/easystroke/ ... edGestures

Setting up regular gestures to switch between windows by pressing Alt+Tab won't work very well: The problem is that this requires holding down the Alt key, but regular gestures have to release the key immediately. This is where advanced gestures come in: Now the modifiers associated to the last action will be held down until the gesture is over, i.e. until you release the gesture trigger button. As an example, let's set up easystroke to allow Alt+Tab switching by performing an "up"-stroke (without releasing the trigger button), followed by flicking the scroll wheel. Make sure that the "Ignore..." option described above is disabled. This time we need to add two actions, one for the up button (Button4) and one for the down (Button5). Set them up to be key actions, pressing Alt+Tab and Alt+Shift+Tab, and then record the two strokes. Not that you will have to perform the stroke for both mouse buttons, once followed by an up flick and once by a down flick, but when you're actually executing the action multiple times in a row, you only need to perform the stroke once.


OpenSuse Leap 42.1 x64, Plasma 5.x

the.holysword
Registered Member
Posts
12
Karma
0
google01103 wrote:nothing I am familiar with but maybe something like this https://github.com/thjaeger/easystroke/ ... edGestures

Setting up regular gestures to switch between windows by pressing Alt+Tab won't work very well: The problem is that this requires holding down the Alt key, but regular gestures have to release the key immediately. This is where advanced gestures come in: Now the modifiers associated to the last action will be held down until the gesture is over, i.e. until you release the gesture trigger button. As an example, let's set up easystroke to allow Alt+Tab switching by performing an "up"-stroke (without releasing the trigger button), followed by flicking the scroll wheel. Make sure that the "Ignore..." option described above is disabled. This time we need to add two actions, one for the up button (Button4) and one for the down (Button5). Set them up to be key actions, pressing Alt+Tab and Alt+Shift+Tab, and then record the two strokes. Not that you will have to perform the stroke for both mouse buttons, once followed by an up flick and once by a down flick, but when you're actually executing the action multiple times in a row, you only need to perform the stroke once.

I honestly cannot find anything related to "advanced strokes" in the easystroke, or any of the options mentioned in that page... how do I bring that up? Or is it another software?
User avatar
google01103
Manager
Posts
6668
Karma
25
no idea - you can try contacting the author, the site states he welcomes comments and suggestions on the home page


OpenSuse Leap 42.1 x64, Plasma 5.x



Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]