SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-04-25 11:08:59

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Hot corners and aero'esque window snapping

I have been working on a script to add configurable hot corners and aero'esque style left/right window snapping. The script seems to be working quite well on my systems, but it could do with some more testing. If you are interested, it is installable via the repository and usage information is on GitHub: https://github.com/corenominal/cb-wmhacks

sudo apt-get update && sudo apt-get install cb-wmhacks

Last edited by corenominal (2012-04-25 12:33:44)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-04-25 12:28:21

scket
#! CrunchBanger
From: West Midlands
Registered: 2009-01-16
Posts: 220

Re: Hot corners and aero'esque window snapping

I can't wait to get back home to #! to try this out.

Offline

#3 2012-04-25 12:34:10

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

scket wrote:

I can't wait to get back home to #! to try this out.

Good stuff, thank you smile

Offline

#4 2012-04-25 12:59:48

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Hot corners and aero'esque window snapping

hey corenominal! so that's where you have been! big_smile

well, i think there's gonna be lots of people happy with such a script. seen a request for stuff like this a couple of times these past weeks i think. so it's good to have something native in #!
won't be using it myself, as i'm quite happy with how i have everything set up. still, much appreciate the effort (and good to see your face around here again smile)

Offline

#5 2012-04-25 14:04:29

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

rhowaldt wrote:

hey corenominal! so that's where you have been! big_smile

Yes, sorry, Waldorf has been keeping me pretty busy of late, so not a whole lot of time to spare.

Offline

#6 2012-04-25 14:33:33

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Hot corners and aero'esque window snapping

^ no problem man! we're just concerned for your well-being and like having you around, that's all. but we know you're not sulking off somewhere drinking beer from our donations ;D
come to think of it, i'll give you some more drinking-money soon smile

Offline

#7 2012-04-25 14:36:39

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

Yay, beer! big_smile

Offline

#8 2012-04-25 14:40:11

gutterslob
#! Resident Bum
Registered: 2009-11-03
Posts: 3,116

Re: Hot corners and aero'esque window snapping

I misread that as cb-whacks!! lol


Point & Squirt

Offline

#9 2012-04-25 16:07:26

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

gutterslob wrote:

I misread that as cb-whacks!! lol

big_smile

Offline

#10 2012-04-25 16:58:09

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 3,002
Website

Re: Hot corners and aero'esque window snapping

So... actually installed the script, and the aero-snapping seems to work OK. (Any chance of a command to undo it?) Kupfer, however, was not a great success, at least the version that comes with Squeeze. When launched from a terminal it threw out a slew of error messages, and the window seemed to be unresponsive to anything... I'm probably missing something though...

Anyway, Phillip, good to see you around. How's the sciatica these days?


John
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Offline

#11 2012-04-25 17:53:52

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

johnraff wrote:

So... actually installed the script, and the aero-snapping seems to work OK. (Any chance of a command to undo it?) Kupfer, however, was not a great success, at least the version that comes with Squeeze. When launched from a terminal it threw out a slew of error messages, and the window seemed to be unresponsive to anything... I'm probably missing something though...

Undo could be tricky. I guess I would need to look at storing window ids and associated geometries. Hmm.

Kupfer is much improved in Wheezy, although the output persists, much of which seems to harmless event logging.

Anyway, Phillip, good to see you around. How's the sciatica these days?

Touch wood, it has been fine, thanks for asking smile

Offline

#12 2012-04-25 18:05:28

TitanMech
Banned
From: Blue Zone 3
Registered: 2011-08-28
Posts: 930

Re: Hot corners and aero'esque window snapping

Hey Corenominal would this work on terminator if i had the window borders disabled?

Offline

#13 2012-04-25 18:08:49

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

TitanMech wrote:

Hey Corenominal would this work on terminator if i had the window borders disabled?

Yes smile

Offline

#14 2012-04-25 18:11:36

TitanMech
Banned
From: Blue Zone 3
Registered: 2011-08-28
Posts: 930

Re: Hot corners and aero'esque window snapping

corenominal wrote:
TitanMech wrote:

Hey Corenominal would this work on terminator if i had the window borders disabled?

Yes smile

Great, im gonna test it on my netbook and see if there is any noticeable difference in performance.

Offline

#15 2012-04-25 18:14:15

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

TitanMech wrote:

Great, im gonna test it on my netbook and see if there is any noticeable difference in performance.

Good stuff. Performance is something that concerns me, I have not noticed any hits myself, but again, it really needs more people testing it. Thanks.

Offline

#16 2012-04-26 08:19:42

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Hot corners and aero'esque window snapping

Probably I'm doing something wrong. What's supposed to happen exactly? How do I activate the hot corners? hmm


sed 's/stress/relaxation/g'
Privacy & Security on #!

Offline

#17 2012-04-26 08:24:42

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

Tunafish wrote:

Probably I'm doing something wrong. What's supposed to happen exactly? How do I activate the hot corners? hmm

If you run the script with the '--daemon' argument, it should detect when your cursor hits the corner of your screen, and if the corner has an associated command, it will run it.

By default, the top left corner has the command 'kupfer' associated to it, either install kupfer or change the command. HTH smile

Offline

#18 2012-04-26 13:54:18

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

corenominal wrote:
johnraff wrote:

So... actually installed the script, and the aero-snapping seems to work OK. (Any chance of a command to undo it?) Kupfer, however, was not a great success, at least the version that comes with Squeeze. When launched from a terminal it threw out a slew of error messages, and the window seemed to be unresponsive to anything... I'm probably missing something though...

Undo could be tricky. I guess I would need to look at storing window ids and associated geometries.

Okay, it now has some basic session management and so undoing aero snapping should work, at least it does on my systems smile

The script now requires a fairly recent version of xdotools, which I have backported to Statler. I have also put the package 'cb-wmhacks' in the Statler repo, so it is should now be possible to install the script:

sudo apt-get update && sudo apt-get install cb-wmhacks

Offline

#19 2012-04-26 21:29:50

scket
#! CrunchBanger
From: West Midlands
Registered: 2009-01-16
Posts: 220

Re: Hot corners and aero'esque window snapping

Working fine for me at the moment.

Not sure I'll stick with it but I'll definitely 'keep an eye on it'.
tongue

Offline

#20 2012-04-27 08:01:36

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Hot corners and aero'esque window snapping

I feel stupid... but no corner action, no snapping here. wmhacks --daemon is running (according to htop).
Kupfer is installed (and works).

This is the output in terminal when I run wmhacks --daemon

$ cb-wmhacks --daemon
Xlib.protocol.request.QueryExtension
Xlib.protocol.request.QueryExtension

sed 's/stress/relaxation/g'
Privacy & Security on #!

Offline

#21 2012-04-27 08:27:26

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

Tunafish wrote:

I feel stupid... but no corner action, no snapping here. wmhacks --daemon is running (according to htop).
Kupfer is installed (and works).

This is the output in terminal when I run wmhacks --daemon

$ cb-wmhacks --daemon
Xlib.protocol.request.QueryExtension
Xlib.protocol.request.QueryExtension

No need to feel stupid, it is most probably a problem with the script. As mentioned, it has not received any widespread testing, so there is bound to be some issues wink

How did you get the script?

Offline

#22 2012-04-27 08:37:56

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Hot corners and aero'esque window snapping

corenominal wrote:
Tunafish wrote:

I feel stupid... but no corner action, no snapping here. wmhacks --daemon is running (according to htop).
Kupfer is installed (and works).

This is the output in terminal when I run wmhacks --daemon

$ cb-wmhacks --daemon
Xlib.protocol.request.QueryExtension
Xlib.protocol.request.QueryExtension

No need to feel stupid, it is most probably a problem with the script. As mentioned, it has not received any widespread testing, so there is bound to be some issues wink

How did you get the script?

At first I used the version from github.
Now I installed with apt-get from statler repo.
I'm using 64-bit testing (so i had to install xdotool from statler repo as well)


sed 's/stress/relaxation/g'
Privacy & Security on #!

Offline

#23 2012-04-27 08:57:09

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

Hmm, do you get any output from 'cb-wmhacks --aero-left'?

Offline

#24 2012-04-27 09:44:45

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Hot corners and aero'esque window snapping

corenominal wrote:

Hmm, do you get any output from 'cb-wmhacks --aero-left'?

No text output, but it does move the window.


sed 's/stress/relaxation/g'
Privacy & Security on #!

Offline

Be excellent to each other!

#25 2012-04-27 10:10:04

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Hot corners and aero'esque window snapping

Tunafish wrote:
corenominal wrote:

Hmm, do you get any output from 'cb-wmhacks --aero-left'?

No text output, but it does move the window.

Okay, sounds like an issue with xlib and cursor detection. Could you describe your set-up, screen and input device, etc?

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo