SEARCH

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

You are not logged in.

#1 2013-07-03 10:30:11

kaiser
New Member
Registered: 2013-07-02
Posts: 5

Openbox native "aerosnap"

Hello! Im aware of the effort the community is doing to integrate the hot corners and the "aerosnap" funcionalities in the best way possible. I want to help in that task but recently heard about the possibility of openbox implementing native "aerosnap". My question is: should i go ahead and mess with the cb-wmhacks scripts or just wait until native funcionality and focus my efforts in other tasks?

Offline

Be excellent to each other!

#2 2013-07-03 10:58:12

Anakinholland
#! CrunchBanger
Registered: 2011-11-30
Posts: 210

Re: Openbox native "aerosnap"

Possibly I misunderstand, don't know what you mean with hot corners, but for sure aerosnap and grow-to-edge is already present in Waldorf?

~/.config/openbox/rc.xml

    <!-- A bit of tiling -->
    <keybind key="W-Right">
      <action name="GrowToEdgeEast"/>
    </keybind>
    <keybind key="W-Left">
      <action name="GrowToEdgeWest"/>
    </keybind>
    <keybind key="W-Down">
      <action name="GrowToEdgeSouth"/>
    </keybind>
    <keybind key="W-Up">
      <action name="GrowToEdgeNorth"/>
    </keybind>
    <keybind key="W-A-Left">
      <action name="Execute">
        <command>cb-aerosnap --left</command>
      </action>
    </keybind>
    <keybind key="W-A-Right">
      <action name="Execute">
        <command>cb-aerosnap --right</command>
      </action>
    </keybind>

Regards!


Use what you like. If you don't like it, improve it. If you can't, look for something else. || **Please read before posting** || Edit the first post in a topic and mark it [solved] if it has been.

Offline

#3 2013-07-03 11:24:59

kaiser
New Member
Registered: 2013-07-02
Posts: 5

Re: Openbox native "aerosnap"

Hot corners is the "ability" to run automatically a command when you bring the cursor to a corner of the screen, like in Mac or Gnome3. It was introduced by corenominal as a python script (/usr/bin/cb-hotcorners) which can be controlled via the cb-hotcornersrc file which will be created in your .config directory after the first run. He also introduced another python script (/usr/bin/cb-aerosnap) for the aerosnap funcionality. One idea was to assign the aerosnap commands to the hot corners in order to be able to aerosnap the windows using the mouse instead of the keyboard but it doesnt work quite well as long as im aware. So i was thinking in mess a bit with it but i heard something on openbox implementing that funcionality natively, so i dont know what to do big_smile

Offline

#4 2013-07-03 11:42:47

mishle
#! CrunchBanger
From: Bitterroot Valley
Registered: 2010-07-20
Posts: 167

Re: Openbox native "aerosnap"

I would go ahead and work on your own aerosnap solution. 

Open box might be awhile before it gets updated.

If nothing else chalk it up to learning. I for one would like to see what you come up with.

Offline

#5 2013-07-03 13:05:17

daks
Member
Registered: 2011-06-01
Posts: 24

Re: Openbox native "aerosnap"

There's opensnap, a bit similar to aerosnap, not exactly same but still... ;-)

Offline

#6 2013-07-03 14:16:08

th3pun15h3r
#! Die Hard
Registered: 2011-11-22
Posts: 537

Re: Openbox native "aerosnap"

I myself use the hotcorners+aerosnap combo and it works fine for me on the laptop but it is lacking on my main system because  it doesnt work on my second monitor.  This opensnap apparently does so I might try and give it a shot.

Offline

#7 2013-07-03 15:18:11

brontosaurusrex
#! Red Menace
Registered: 2012-06-15
Posts: 1,236

Re: Openbox native "aerosnap"

daks wrote:

There's opensnap, a bit similar to aerosnap, not exactly same but still... ;-)

This works great (single-monitor system) out of the box.

Offline

#8 2013-07-03 16:27:11

th3pun15h3r
#! Die Hard
Registered: 2011-11-22
Posts: 537

Re: Openbox native "aerosnap"

is opensnap what lxle linux distro uses?

Offline

#9 2013-07-04 07:42:41

daks
Member
Registered: 2011-06-01
Posts: 24

Re: Openbox native "aerosnap"

th3pun15h3r wrote:

is opensnap what lxle linux distro uses?

I guess no, cause LXLE Configuration Guide says:

Inducing the “Aero Snap” like feature
1. Select window you would like to move (either up, down, left or right)
2. Hold Super Key (windows key) and press and arrow on the keyboard in desired direction.
3. Do the same for the second window you would like to position.

Personally I use Win[+Shift]+mouse wheel Up/Down for window maximize/restore/snap left/snap right, it's really comfortable ;-)

Offline

#10 2013-07-05 07:32:48

kaiser
New Member
Registered: 2013-07-02
Posts: 5

Re: Openbox native "aerosnap"

Hi! I know that is possible to do aerosnap through keyboard shortcuts but I prefer the drag-the-window method which i think is more intuitive. I havent play around with opensnap yet so i dont know what features it offers but i want an aerosnap application which permits half screen and quarter screen snapping. At the moment im working on a python script to bring the hot-corners funcionality to Windows and I have found that using an in/out-of-the-corner flag to prevent the command insta-re-running provides a better experience than the bounce and sleep method use in cb-hotcorners. I will suggest it as an improvement in a future. I will continue working on it and I will see what can I bring to #!

Offline

#11 2013-07-05 09:53:14

brontosaurusrex
#! Red Menace
Registered: 2012-06-15
Posts: 1,236

Re: Openbox native "aerosnap"

kaiser: opensnap is mice oriented, by default it does: top border = fullscreen, left/right = half screen, bottom = close app. Also i'am pretty sure quarters would be possible by modifying configs (or maybe the sources) a bit (didn't test).

Offline

#12 2013-07-15 18:58:20

lawl
New Member
Registered: 2013-01-18
Posts: 2

Re: Openbox native "aerosnap"

Hi

Yes you can to "quarter-snap" with opensnap by hacking the config files.

See for example: https://github.com/lawl/opensnap/blob/m … s/hit_left
Modify line 14 that sais:

WIDTH=$(($SCREEN_WIDTH/2))

with

WIDTH=$(($SCREEN_WIDTH/4))

and done. well, you need to edit hit_right too, and then you're done.

Offline

#13 2013-09-14 09:56:49

Resident Bot
#! Die Hard
From: The Netherlands
Registered: 2012-02-17
Posts: 621

Re: Openbox native "aerosnap"

hmm just installed opensnap via the website instructions but nothing happens when I move mouse to edges - maybe conflicting with openboxes setup?


Troll = not a fanatic
slave of #!  and arch

Offline

#14 2013-09-14 21:10:47

brontosaurusrex
#! Red Menace
Registered: 2012-06-15
Posts: 1,236

Re: Openbox native "aerosnap"

ChickenPie4Tea, try "opensnap -v" in terminal and observe the behaviour.

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