Workspace-Strap Effect

Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

5
8.0
Available as/for: -
Description:

This is a KWin Effect that lets you organize your windows on a linear strap, that is bigger than your screen. Using configurable modifier keys, you can easliy move the part of the strap you see.
This gives you more space on your Desktop and more freedom in organizing your windows.

Requires KDE 4.7.

Attention: After updating your KDE-Version to a new Feature-Release (4.x) you have to rebuild this effect, as KWin doesn't load effects that were built against an older KDE-version than installed.

Features:
-A preview of the whole strap when pressing the modifier keys
-Automatically moves your view to a just activated window
-Choose between a horizontal strap (better for big screens) or a vertical strap (better for small screens)
-Shortcut (ALT+Meta+Space) to move the view to the center of the strap
Last changelog:

6 years ago

0.1: Initial release
0.1.1: Added a README-file
0.1.2: Have a separate position for each virtual desktop and activity
0.2: Optionally make the strap vertical
1.0: -Make the strap automove when less than 33%(configurable) of the window is shown
-Shortcut to move the view to the center of the strap
-Remove the annoying flickering
-Fix a bug with tabbed windows (Requires 4.8)
-Improve the handling of maximized windows
-Fix the compiling bug of not finding kactivityconsumer.h
1.0.1: Fix 3 compiling errors, concerning kactivities
1.0.2: Fix a bug that caused the effect to move only one window on 4.7
1.0.3: Make the effect work again with KDE >= 4.11 (tested with 4.13)
1.0.4: Fix two small bugs from previous version
1.0.5: Fix automove

Rudd-O

9 years ago

For the record, it is a bug in the strap:

https://bugzilla.redhat.com/show_bug.cgi?id=794942

Report

C

KAnton

9 years ago

I don't have an account at redhat's bugzilla so I'll reply here:
kactivityconsumer.h and others have been removed from libkworkspace in 4.8, in favour of libkactivities:
http://commits.kde.org/kde-workspace/c3599917
libkactivities is not part of kde-workspace but a own repository and such a own package: kactivities(-devel). (See comment #1). So it is not a bug.

This effect is able to use /usr/include/kde4/kactivities/consumer.h (from kactivities-devel). You should install that package and retry.

Report

Rudd-O

9 years ago

Of course it is a bug. Your program does not compile as advertised in kde 4.8. This is a bug by definition. Fix the source to detect the correct header and use that header, then push the fix to your repo.

Report

Rudd-O

9 years ago

OK, I found the problem. IT's on my side. thanks for your help.

Report

C

KAnton

9 years ago

Nice to know it's working now :)

May I ask, what the problem was? just for personal interest. (Maybe I can use it to help others, who have the same problem)

Report

Moviuro

9 years ago

Well, first: it's GREAT.
Then second: BUT. (well, yes, there always is a but ;) )
Your idea was nice and the realization is even better. But I think it can be enhanced this way :
* allow direct clic & drag from the popup miniature (a bit like a task manager: click on an icon to go to the app; click on a free space to go to it)
* allow keyboard navigation (Windows/Cmd key + arrows, for example)
* allow the mouse to instantly move from right/left edge to the left/right one while sliding. It will allow us to have bigger straps, without any loss of time. To have a look at this functionality, open a long pdf file with okular and click & drag the document until your cursor reaches the top of your screen. It will disappear and appear at the bottom, without having lost its grip ;)
* Create some automated dispositions: for example, Windows/Cmd + Shift + A will make all windows vertically maximized, and wide enough for all them to fill All the strap (5 windows, 3840*1080 pxl strap -> 5 times 768*1080 windows, next to each other)
* Perhaps allow both vertical & horizontal strap?
* Allow reverse mouse movements (mouse goes right, strap goes right, not as it does right now)

Well, that's it!
Thanks a big lot for this awesome addon, I think I'd miss it if I couldn't use it anymore :)

Report

herophuong

9 years ago

Some suggestions should improve UX: use keyboard to move the strap; kinetic move (useful with touchscreen and long strap).
This is a great effect. Keep up with the good job. :D

Report

Moviuro

9 years ago

Everything is in the title... ;-)

Report

C

KAnton

9 years ago

This is because the OpenSUSE Build Service is currently down for maintanance. I guess it will be available again tomorrow. Sorry for the inconvenience, but I can't help here. Just wait ;)

Report

JBeauregard

9 years ago

hi,

I tried to install under fc16.x86_64, it says I need libkactivities.so.5

kdelibs is already installed,obv

any idea?

cheers

Report

C

KAnton

9 years ago

first check whether /usr/lib/libkactivities.so.5 or /usr/lib64/libkactivities.so.5 exists.
If not there should be a package libkactivities (or similar) in the fedora-repositories. If it exists, install it, else post again here with the information you gained.

Report

JBeauregard

9 years ago

hi kanton,

thanks for your fast reply.

funny thing is, libkactivities is installed (libkactivities 6.1-2.fc16), but there's no

libkactivities.so.5, libkactivities.so.6.0.0 is installed...

Report

C

KAnton

9 years ago

ah...
well, do you use the standard-repos for kde or do you use some other e.g. a seperate update-repo?
If not, I fear I can do nothing, until the OBS gets current packages.

Report

JBeauregard

9 years ago

using update repo.

I guess I'll have to wait...

thanks kanton

Report

9

Saleel

9 years ago

really is quite fantastic, thanks for fixing that 4.7 bug.

Report

9

FSchulz

9 years ago

Maybe you said it anywhere and I didn't found it, but you should say the users, that you can center the view/strap by pressing meta+alt+space. A few months ago I suggested this feature and you implemented it (and I love it), so I think its important, that other people also now it. ;)

Best regards!

Report

C

KAnton

9 years ago

Sorry, I planned to inform you, but I have forgotten it...
What exactly do you mean with "say the users, that you can center the view/strap by pressing meta+alt+space"? a kind of hint, when using the effect (do you have an idea where to place the hint?) or what did you think of?

Report

9

FSchulz

9 years ago

No not in the effect-setting-window, but maybe on this kde-look-page (in the information area) ;). Another suggestion is, that the user can set the time, the slide effect needs to change the window, which is focused (I hope you know what you mean). At the moment the slide effect is a little bit to slow for me.

Best regards and thanks for your work! :)

Report

jackric

9 years ago

[email protected]:~/Scaricati/workspacestrap/build$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake)
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found KDE 4.7 include dir: /usr/include
-- Found KDE 4.7 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
CMake Error at CMakeLists.txt:38 (message):
No kactivityconsumer.h found. Please run 'find /usr/include -name
*consumer.h'.

If it finds something related to KActivities please send me a mail
([email protected]) or add

a comment at kdeapps.org with the output of find in it. Else check your
KDE-Installation.


-- Configuring incomplete, errors occurred!

Report

C

KAnton

9 years ago

To give you any help you need to do what the error message sais:
"Please run 'find /usr/include -name *consumer.h'."
and post the result here. Moreover you should look out for a package called kactivities-devel (or similar) in your packagemanager, you will probably need it.

Report

gnumdk

9 years ago

if (EXISTS "/usr/include/kworkspace/kactivityconsumer.hg")

Report

C

KAnton

9 years ago

fixed.

Report

gnumdk

9 years ago

Not in current archive

Report

C

KAnton

9 years ago

Infact, sorry. It seems I uploaded the unpatched archive again... Now it's there.

Report

giovanicascaes

9 years ago

Hi!

I'm getting this error while compiling:

[100%] Building CXX object CMakeFiles/kwin4_effect_workspacestrap.dir/workspacestrap.o
Linking CXX shared module lib/kwin4_effect_workspacestrap.so
CMakeFiles/kwin4_effect_workspacestrap.dir/workspacestrap.o: In function `WorkspaceStrapEffect':
/home/giovani/Downloads/workspacestrap/workspacestrap.cpp:61: undefined reference to `KActivityConsumer::KActivityConsumer(QObject*)'
/home/giovani/Downloads/workspacestrap/workspacestrap.cpp:77: undefined reference to `KActivityConsumer::currentActivity() const'
collect2: ld returned 1 exit status
make[2]: *** [lib/kwin4_effect_workspacestrap.so] Error 1
make[1]: *** [CMakeFiles/kwin4_effect_workspacestrap.dir/all] Error 2
make: *** [all] Error 2

What's the problem? I'm using openSUSE 12.1 and KDE 4.7.4, with the development packages installed.

Btw nice thought about desktops ;)

Report

6 years ago

0.1: Initial release
0.1.1: Added a README-file
0.1.2: Have a separate position for each virtual desktop and activity
0.2: Optionally make the strap vertical
1.0: -Make the strap automove when less than 33%(configurable) of the window is shown
-Shortcut to move the view to the center of the strap
-Remove the annoying flickering
-Fix a bug with tabbed windows (Requires 4.8)
-Improve the handling of maximized windows
-Fix the compiling bug of not finding kactivityconsumer.h
1.0.1: Fix 3 compiling errors, concerning kactivities
1.0.2: Fix a bug that caused the effect to move only one window on 4.7
1.0.3: Make the effect work again with KDE >= 4.11 (tested with 4.13)
1.0.4: Fix two small bugs from previous version
1.0.5: Fix automove

12345678910
119
product-maker mirkogennari Jan 11 2017 9 excellent
product-maker bugzy Sep 21 2014 9 excellent
product-maker apfelmaus Feb 21 2012 9 excellent
product-maker kalmar Jan 07 2012 9 excellent
product-maker Saleel Jan 06 2012 9 excellent
product-maker boskicinek Jan 05 2012 9 excellent
product-maker JanGerritJose Jan 04 2012 9 excellent
product-maker gerstavros Jan 04 2012 9 excellent
product-maker hlebarkata Nov 12 2011 9 excellent
product-maker tetris4 Nov 08 2011 9 excellent
product-maker naaamo2004 Nov 08 2011 9 excellent
product-maker reves121 Nov 06 2011 9 excellent
product-maker trebor Nov 05 2011 9 excellent
product-maker steveke Oct 18 2011 9 excellent
product-maker herrbatka Aug 06 2011 9 excellent
product-maker Pyruzan Jul 25 2011 9 excellent
product-maker FSchulz Jul 23 2011 9 excellent
product-maker lazx888 Jul 23 2011 9 excellent
product-maker Znurre Jul 23 2011 9 excellent
product-maker vitoubien Jul 22 2011 3 bad
Be the first to comment
bugzy
Sep 21 2014
apfelmaus
Feb 21 2012
tomsdale
Feb 20 2012
tetris4
Nov 08 2011
FSchulz
Jul 24 2011
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.0.4
updated Oct 25 2014
added Jul 22 2011
downloads 24h
0
mediaviews 24h 0
pageviews 24h 6