SEARCH

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

You are not logged in.

#1 2013-03-29 00:18:58

orionthehunter
#! Constellation
From: Japan
Registered: 2011-04-09
Posts: 956
Website

corenominals hidden goodies

I was looking for the cb-compositor pipe menu in /usr/bin and guess what I found !!!

Check out this list with

ls /usr/bin/cb*
cb-aerosnap     cb-dropbox-pipemenu  cb-hotcorners            cb-places-pipemenu          cb-sshconfig-pipemenu
cb-compositor   cb-exit              cb-include.cfg           cb-printing-pipemenu        cb-welcome
cb-compositor~  cb-fortune           cb-libreoffice-pipemenu  cb-recent-files-pipemenu    cb-x-www-browser-pipemenu
cb-cowpowers    cb-help-pipemenu     cb-lock                  cb-remote-desktop-pipemenu

The ones that I'm most fascinated by (because I hadn't ever seen them before) are cb-hotcorners and cb-aerosnap.

cb-hotcorners can be run with --daemon in your autostart.sh file to enable hot corners with your cursor.  In fact the only pre-configured hotcorner is the top left which is set to run gmrun.

For those that love slamming their cursor up into the top left of the screen to get their application menu like in Gnome-Shell? You MIGHT be able to do that... In fact that's kind of what I'm trying to figure out how to do now.  The script is written in python, so I'm just trying to figure out how to invoke openbox's "root-menu" from python.  Any tips?

Last edited by orionthehunter (2013-03-29 00:24:37)

Offline

Help fund CrunchBang, donate to the project!

#2 2013-03-29 00:25:45

rkwurth
#! Junkie
Registered: 2012-09-04
Posts: 365

Re: corenominals hidden goodies

cb-aerosnap should be enabled be default at Win + Alt + Left/Right, if I recall correctly. cb-hotcorners was included in an earlier Waldorf build, suspended indefinitely until a use more beneficial than annoying could be discovered for it.

Offline

#3 2013-03-29 00:57:10

rkwurth
#! Junkie
Registered: 2012-09-04
Posts: 365

Re: corenominals hidden goodies

But anyway I think your best bet to get it to pop open the openbox menu is to use xdotool. Bind root-menu to say, A-F4 in your rc.xml, then tell cb-hotcorners to do

xdotool key --clearmodifiers "alt+F4"

when you bump one of your screen corners.

Offline

#4 2013-03-29 01:27:26

orionthehunter
#! Constellation
From: Japan
Registered: 2011-04-09
Posts: 956
Website

Re: corenominals hidden goodies

Works well thanks!  I took off the bounce and set the top left to show the client-list and the bottom left to show the root, and I got rid of my tint2 :-D  We'll see how long I use it like this.

Offline

#5 2013-03-29 01:36:20

rkwurth
#! Junkie
Registered: 2012-09-04
Posts: 365

Re: corenominals hidden goodies

Very cool! Maybe you will be the pioneer who brings cb-hotcorners back to the masses :- )

Offline

#6 2013-03-29 01:58:15

junkie
#! Junkie
Registered: 2012-05-04
Posts: 370

Re: corenominals hidden goodies

Love cb-aerosnap and still use it on my slack/open box. Pretty much ended my desire to tile, but I play with a lot of media software and have found corenominal's open box experience to be the best for music/media production so I always end up imitating it, and going back to open box.

Last edited by junkie (2013-03-29 01:59:02)

Offline

#7 2013-03-29 02:08:01

orionthehunter
#! Constellation
From: Japan
Registered: 2011-04-09
Posts: 956
Website

Re: corenominals hidden goodies

here is my cb-hotcornersrc with annotations,

[Hot Corners]
top_left_corner_command = xdotool key --clearmodifiers "super+space"  ## Shows Root Menu
top_right_corner_command = ## Blank because my close window button is in the top right corner of maximized windows
bottom_left_corner_command = xdotool key --clearmodifiers "super+Tab" ## Shows Client List Menu
bottom_right_corner_command = xdotool key --clearmodifiers "super+a" ## Adds a new desktop

Also I added xclock with the following application exception settings in openbox rc.xml

    <application name="xclock">
      <desktop>all</desktop>
      <decor>no</decor>
      <shade>no</shade>
      <skip_pager>yes</skip_pager>
      <skip_taskbar>yes</skip_taskbar>
      <fullscreen>no</fullscreen>
      <maximized>no</maximized>
      <layer>bottom</layer>
      <position force="yes">
        <x>-1</x>
        <y>-1</y>
        <monitor>1</monitor>
      </position>
    </application>

And invoke it in autostart with:

xclock -d -brief -twelve

Looks like this
8598465793_6a66d0c1d4_m.jpg

8599566254_1c2a5afe71_m.jpg

8598465871_c4c48907b6_m.jpg

I would definitely recommend a set-up like this for netbooks where vertical pixels are in high demand.

I also just discovered that you can scroll through desktops with alt+mousewheel even if you're mouse isn't in the root window!  Very sweet.  I love what you learn when you play :-D

Last edited by orionthehunter (2013-03-29 02:20:10)

Offline

#8 2013-03-29 02:20:33

junkie
#! Junkie
Registered: 2012-05-04
Posts: 370

Re: corenominals hidden goodies

Nice orion!
I used to use bottom left to start tint2 and bottom right to kill it. Hotcorners was kinda juice sucking from what I remember though. Cool wallpaper!  smile

Offline

#9 2013-03-29 02:33:38

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

Re: corenominals hidden goodies

I used the hot corners when I was working on many remote computers at a time. 

I just hit the corner for the computer I wanted to switch to it worked well.

I don't need it any more and have not used it again.

Offline

#10 2013-03-29 04:01:53

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

Re: corenominals hidden goodies

Does cb-aerosnap do anything different from eg:

    <keybind key="W-A-Left">
      <action name="UnmaximizeHorz"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>50%</width>
        <x>0</x>
        <y>0</y>
      </action>
    </keybind>
    <keybind key="W-A-Right">
      <action name="UnmaximizeHorz"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>50%</width>
        <x>-0</x>
        <y>0</y>
      </action>
    </keybind>

?

btw, if you want to use A-F4 for something, it's already in rc.xml as:

    <keybind key="A-F4">
      <action name="Close"/>
    </keybind>

John     Please help us keep your forums manageable.   Don't Break Debian
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Offline

#11 2013-03-29 04:05:57

orionthehunter
#! Constellation
From: Japan
Registered: 2011-04-09
Posts: 956
Website

Re: corenominals hidden goodies

No John I think it's pretty much the same as that configuration.

Yes, good point on that Alt+F4 bit, I already had different mappings so it wasn't a big deal, but for others yes :-)

Offline

#12 2013-03-29 04:12:52

orionthehunter
#! Constellation
From: Japan
Registered: 2011-04-09
Posts: 956
Website

Re: corenominals hidden goodies

Man!  John, your bit of rc configuration gave me a hint for another great key shortcut: demaximize and center:

    <keybind key="W-A-c">
      <action name="UnmaximizeHorz"/>
      <action name="UnmaximizeVert"/>
      <action name="MoveResizeTo">
        <width>70%</width>
	<height>70%</height>
        <x>center</x>
        <y>center</y>
      </action>
    </keybind>

Offline

#13 2013-03-29 04:29:11

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

Re: corenominals hidden goodies

^yes I could see using that quite often.  cool
(ToggleMaximizeFull is another useful action.)


John     Please help us keep your forums manageable.   Don't Break Debian
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Offline

#14 2013-03-29 05:40:02

junkie
#! Junkie
Registered: 2012-05-04
Posts: 370

Re: corenominals hidden goodies

ops  and here to think, that I've been carrying around cb-aerosnap for all this time when I thought it was responsible for this.

    <!-- 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>

I don't even think I've ever used it... it doesn't seem to work either...

Offline

#15 2013-03-29 10:25:18

lenin-bot
Member
From: Indiana
Registered: 2013-03-28
Posts: 15
Website

Re: corenominals hidden goodies

orionthehunter wrote:

Also I added xclock with the following application exception settings in openbox rc.xml

    <application name="xclock">
      <desktop>all</desktop>
      <decor>no</decor>
      <shade>no</shade>
      <skip_pager>yes</skip_pager>
      <skip_taskbar>yes</skip_taskbar>
      <fullscreen>no</fullscreen>
      <maximized>no</maximized>
      <layer>bottom</layer>
      <position force="yes">
        <x>-1</x>
        <y>-1</y>
        <monitor>1</monitor>
      </position>
    </application>

And invoke it in autostart with:

xclock -d -brief -twelve

Is there any way to make it so that xclock is always at the front of the screen?

Last edited by lenin-bot (2013-03-29 10:25:46)

Offline

#16 2013-03-29 10:33:57

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: corenominals hidden goodies

suppose so,
try layer 'top'
edit the file, then restart openbox

openbox --restart

Offline

#17 2013-03-29 10:48:14

rkwurth
#! Junkie
Registered: 2012-09-04
Posts: 365

Re: corenominals hidden goodies

JohnRaff, Orion, Junkie - cb-aerosnap differs from the native openbox actions as it remembers the window's position and allows restoral of that position after tiling to the left or right. Just like maximization/unmaximization.

Offline

#18 2013-03-29 10:56:56

lenin-bot
Member
From: Indiana
Registered: 2013-03-28
Posts: 15
Website

Re: corenominals hidden goodies

xaos52 wrote:

suppose so,
try layer 'top'
edit the file, then restart openbox

openbox --restart

I tried that, but it still sits below every other window.

Offline

#19 2013-03-29 15:53:39

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

Re: corenominals hidden goodies

rkwurth wrote:

cb-aerosnap differs from the native openbox actions as it remembers the window's position and allows restoral of that position after tiling to the left or right.

Ah, that is a plus.


John     Please help us keep your forums manageable.   Don't Break Debian
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Offline

#20 2013-03-29 22:22:44

rkwurth
#! Junkie
Registered: 2012-09-04
Posts: 365

Re: corenominals hidden goodies

It is a plus... it would be nice if it collaborated with OB's native maximize action, but it's much better than nothing.

Offline

#21 2013-03-30 17:45:31

rkwurth
#! Junkie
Registered: 2012-09-04
Posts: 365

Re: corenominals hidden goodies

yo not to beat a dead horse, but I think cb-hotcorners can be modified and used to emulate the window snapping behavior you see in major DE's and and windows- bump top for maximization, bump side for aerosnap, etc.

Offline

#22 2013-05-08 19:44:14

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

Re: corenominals hidden goodies

I just used hotcorners with aerosnap to do just that!  It only is working on my first not on my second monitor with my dual monitor setup anyone got ideas how to make it work on both?

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