SEARCH

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

You are not logged in.

#26 2010-04-25 16:07:53

achristoffersen
#! Junkie
Registered: 2009-03-23
Posts: 354

Re: post your rc.xml tweaks for openbox.

@anonymous - yes that is what I want. on my screen this means I can have four windows neatly arranged in separate "quadrants" (look at the x and y values). I don't use it much, but e.g. when writing statistics in R - I have gvim open on left halft of the screen (courtesy of your "w-left" keybinding (thanks)). Top right corner (w-KP_9) is graphics output, and bottom right (w-KP_3) is R console.

When I need to maximize a window I always just do alt+space+x

(p.s. the windows does in fact not always arrange neatly. I guess because decorations and scrollbars is added to the windows size?  (two undecorated terminals does not touh with my settings - but two decorated firefox'es does. - a bit annoying)

Offline

Be excellent to each other!

#27 2010-04-27 23:17:40

rolobio
New Member
Registered: 2009-09-21
Posts: 9

Re: post your rc.xml tweaks for openbox.

anonymous wrote:

I made these to emulate a couple of Windows 7 keybinds:

    <keybind key="W-Left">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>640</width>
      </action>
      <action name="MoveToEdgeWest"/>
    </keybind>
    <keybind key="W-Right">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>640</width>
      </action>
      <action name="MoveToEdgeEast"/>
    </keybind>

You should change the numbers based on your display resolution and any panels you have.

I've been looking for this! Thanks!

Made a few modifications of my own...

    <keybind key="W-Up">
      <action name="MaximizeFull"/>
      <action name="Maximize"/>
    </keybind>
    <keybind key="W-Down">
      <action name="UnmaximizeFull"/>
      <action name="Unmaximize"/>
    </keybind>
    <keybind key="W-Left">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>683</width>
      </action>
      <action name="MoveToEdgeWest"/>
    </keybind>
    <keybind key="W-Right">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>683</width>
      </action>
      <action name="MoveToEdgeEast"/>
    </keybind>

Last edited by rolobio (2010-04-28 05:15:30)

Offline

#28 2010-06-05 19:05:26

ali
#! Die Hard
Registered: 2010-05-31
Posts: 1,035

Re: post your rc.xml tweaks for openbox.

i deleted a lot of shortcuts that i found useless / confusing and i added my own, namely
volume up/down/mute
i modified W-f from thunar to thunar /home (since i have multiple parittions mounted in /home)
i binded utorrent to W-u
gftp to W-g
geany to W-y
rhythmbox to W-r
i changed W-t to konsole
minitube W-b
icedove to W-e
vlc to W-v
catfish to W-s
calculator to W-c
and i don't have a right click menu, my menu.xml is totally empty and i'm lovin it big_smile

Offline

#29 2010-06-05 20:46:19

FiniteStateMachine
Part of the Machine
From: Ontario, Canada
Registered: 2009-06-29
Posts: 1,489

Re: post your rc.xml tweaks for openbox.

alexander wrote:

i deleted a lot of shortcuts that i found useless / confusing and i added my own, namely
volume up/down/mute
i modified W-f from thunar to thunar /home (since i have multiple parittions mounted in /home)
i binded utorrent to W-u
gftp to W-g
geany to W-y
rhythmbox to W-r
i changed W-t to konsole
minitube W-b
icedove to W-e
vlc to W-v
catfish to W-s
calculator to W-c
and i don't have a right click menu, my menu.xml is totally empty and i'm lovin it big_smile

I operated like that for a long time, about half a year last fall/winter. Had the menu still, but i just left it as super+space, and got rid of the right click key binding, because i never used it.
Had super+W for firefox, super+E for gedit and later geany, super+T for terminator, super+R for Evernote, and super+F for pcmanfm, and finally super+X for exaile music player.
And those were pretty much all my common functions. At that point, the menu was only ever invoked for special circumstances.


just call me...
~FSM~

Offline

#30 2010-08-28 02:43:40

nolla
Member
Registered: 2010-08-26
Posts: 13

Re: post your rc.xml tweaks for openbox.

anonymous wrote:

My titlebar has no buttons big_smile

Is that possible?! I can make them the same color as the background but I know they are there... roll

Offline

#31 2010-08-28 03:23:44

anonymous
The Mystery Member
Registered: 2008-11-29
Posts: 9,419

Re: post your rc.xml tweaks for openbox.

Of course its possible. Using obconf go to Appearance -> Window Titles. I have mine just as "L" so it only has the title.

Offline

#32 2010-08-28 04:44:35

nolla
Member
Registered: 2010-08-26
Posts: 13

Re: post your rc.xml tweaks for openbox.

Ha! Of course I forgot to check the configuration manager smile Where is the configuration file for these options? Would it be possible to get rid of the whole title bar? (not that I need that now... this looks cool as hell without the label or buttons, minimized as small as it was possible on the GUI)

Offline

#33 2010-08-28 05:49:39

anonymous
The Mystery Member
Registered: 2008-11-29
Posts: 9,419

Re: post your rc.xml tweaks for openbox.

The configuration file is ~/.config/openbox/rc.xml

If you want to get rid of the titlebar, just right-click the titlebar and select Un/Decorate. If you want specific or all applications to automatically run without titlebars, you can make a rule in your rc.xml file like:

<application class="Firefox*">
      <decor>no</decor>
    </application>
<application class="*">
      <decor>no</decor>
    </application>

Offline

#34 2010-11-03 16:38:32

slapfish
#! Die Hard
From: Athens, Greece
Registered: 2009-10-22
Posts: 601

Re: post your rc.xml tweaks for openbox.

anthony wrote:

Basically it calls a script I wrote more than 15 years ago (and updated as appropriate) which first looks up the highlighted text using "xselection".  It then create a URL and calls my web browser to display that URL.

This is really amazing Anthony...but it doesn't work on me...is there something I should install? It opens firefox in google start page which I think it means it can't take the selected text from xselection. I search for a package with that name but as I understood it's "inside" X tools.

Any thoughts?

Offline

#35 2010-11-03 16:46:42

jmbarnes
#! Junkie
Registered: 2009-05-04
Posts: 250

Re: post your rc.xml tweaks for openbox.

Some recent tweaks:

A openbox-based fullscreen toggle (not just the application's reliance on F11)

    <keybind key="A-f">
      <action name="ToggleFullscreen"/>
    </keybind>

A tall window, centered on the sceen, 850px's wide. Ideal (for me) width for writing.

    <keybind key="W-c">
      <action name="UnmaximizeFull"/>
      <action name="Undecorate"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>850</width>
      </action>
      <action name="MoveToCenter"/>
    </keybind>

IRC: PizzaAndWine     Script bits: Incremental Backup | Sleep Timer

Offline

#36 2010-11-03 17:54:20

slapfish
#! Die Hard
From: Athens, Greece
Registered: 2009-10-22
Posts: 601

Re: post your rc.xml tweaks for openbox.

me wrote:
anthony wrote:

Basically it calls a script I wrote more than 15 years ago (and updated as appropriate) which first looks up the highlighted text using "xselection".  It then create a URL and calls my web browser to display that URL.

This is really amazing Anthony...but it doesn't work on me...is there something I should install? It opens firefox in google start page which I think it means it can't take the selected text from xselection. I search for a package with that name but as I understood it's "inside" X tools.

Any thoughts?

So far, I found that "xselection" is the xsel package which I installed it but nothing happen. In order to make it work using only my complete ignorance in any programming language I change those lines:

G_IMAGE="http://www.google.com/images?num=250\&safe=off\&imgsafe=off"
G_SEARCH='\&hl=en\&q='
WP_SEARCH="Special:Search?submit=go\&search="
# what is the URL to use (get from X selection)
if [ $# -eq 0 ]; then
    url=`xsel -p|perl -pe 'tr/ /+/' |sed 's/^[     ]*//; s/[ >:::]*$//' | tr ' ' '+'`
else
  url="$1"
fi

I only checked google search and goto-URL features. I guess the other options will work too.

I found the `xsel -p etc etc` here.

Offline

#37 2010-12-09 04:28:43

diablomarcus
Member
Registered: 2009-07-06
Posts: 26

Re: post your rc.xml tweaks for openbox.

Digit wrote:
    <keybind key="W-Left">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>640</width>
      </action>
      <action name="MoveToEdgeWest"/>
    </keybind>
    <keybind key="W-Right">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>640</width>
      </action>
      <action name="MoveToEdgeEast"/>
    </keybind>

Thanks for this! One of the nice things that Windoze has done recently smile

Offline

#38 2011-01-21 14:00:04

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: post your rc.xml tweaks for openbox.

I thought we could have a little topic where we could post our keybindings, as I'm sure at least some of you have some awesome combo's.

I'm mostly looking for new ways to control my windows using the keyboard, for when my mice isn't around.

Here's my rc.xml file concerning window management:

  <!-- Keybindings for window switching -->
    <keybind key="A-F1">
      <action name="NextWindow"/>
    </keybind>
    <!-- Keybindings for windows -->
    <keybind key="A-F2">
      <action name="Iconify"/>
    </keybind>
    <keybind key="A-F3">
      <action name="ToggleMaximizeFull"/>
    </keybind>
    <keybind key="A-F4">
      <action name="Close"/>
    </keybind>
    <keybind key="A-F5">
      <action name="MoveToEdgeNorth"/>
    </keybind>
    <keybind key="A-F6">
      <action name="MoveToEdgeSouth"/>
    </keybind>
    <keybind key="A-F7">
      <action name="MoveToEdgeWest"/>
    </keybind>
    <keybind key="A-F8">
      <action name="MoveToEdgeEast"/>
    </keybind>

If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#39 2011-01-21 14:58:16

anonymous
The Mystery Member
Registered: 2008-11-29
Posts: 9,419

Re: post your rc.xml tweaks for openbox.

Just FYI Unia, I'm gonna merge this with an existing thread.

Offline

#40 2011-01-21 15:31:03

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: post your rc.xml tweaks for openbox.

anonymous wrote:

Just FYI Unia, I'm gonna merge this with an existing thread.

That's ok with me. Thought I should create a new one, since mine was about WM specifically, but this should work too smile


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#41 2011-01-22 23:05:34

charlie01
#! Die Hard
Registered: 2009-02-09
Posts: 556

Re: post your rc.xml tweaks for openbox.

Wow,I never thought to link my favorite sites to keybinds. Heres mine,I changed a few that i never use to run applications like Pidgin/Transmission. and made a Xkill one too.

<keybind key="W-b">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>bit torrent</name>
        </startupnotify>
        <command>transmission</command>
      </action>
    </keybind>
    <keybind key="W-e">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Editor</name>
        </startupnotify>
        <command>gedit</command>
      </action>
    </keybind>
    <keybind key="W-m">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Mediaplayer</name>
        </startupnotify>
        <command>vlc</command>
      </action>
    </keybind>
    <keybind key="W-i">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>pidgin</name>
        </startupnotify>
        <command>pidgin</command>
      </action>
    </keybind>
    <keybind key="W-x">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>xkill</name>
        </startupnotify>
        <command>xkill</command>
      </action>

Offline

#42 2011-01-23 12:38:33

yorick
#! Member
Registered: 2010-12-13
Posts: 96

Re: post your rc.xml tweaks for openbox.

tawan wrote:

Also I make my terminal open to a nice widescreen format

 <keybind key="W-t">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>terminator</name>
        </startupnotify>
        <command>terminator --geometry 930x420</command>
      </action>
    </keybind>

I do something similar to this individual.  I resize my Terminator by dragging the window, and split the screen how I want it, then save it as a "layout" under preferences.

Then I can just do:

 <command>terminator -l "name of layout"</command> 

That way I don't have to mess with the geometry tag or any other commands to make the screen split.

(By the way - this would make a good sticky thread, in my opinion).

Last edited by yorick (2011-01-23 12:39:04)

Offline

#43 2011-03-21 04:02:44

becker
#! CrunchBanger
From: Perth, Western Australia
Registered: 2010-02-26
Posts: 245
Website

Re: post your rc.xml tweaks for openbox.

tawan wrote:

I think one of my favourite bits in my RC is this under the applications section at the bottom

    <application name="swiftfox-bin">
      <decor>no</decor>

Switfox (my web browser) opens fullscreen and undecorated so it does not waste any space.

I added this to my rc.xml file changing swiftfox-bin for iceweasel & then restarted openbox. I didn't notice any thing different it certainly wasn't full screen. Have I made an error somewhere?


pay the bills with Windows, obssesed with Linux, studying CCNA when I can fit it in.

Offline

#44 2011-03-21 04:58:34

anonymous
The Mystery Member
Registered: 2008-11-29
Posts: 9,419

Re: post your rc.xml tweaks for openbox.

Try using:

<application class="Firefox*"
      <decor>no</decor>

Also I typed Firefox on purpose; try it and see if it works.

As for fullscreen, I don't think there an application rule to do that automatically.

Offline

#45 2011-03-21 07:33:27

becker
#! CrunchBanger
From: Perth, Western Australia
Registered: 2010-02-26
Posts: 245
Website

Re: post your rc.xml tweaks for openbox.

Thanks anonymous I gave it a shot and also tried it from the run box to double check and rebooted instead of just restarting ob & nothing. So I decided to try the same thing with terminator & it worked.

Heres what I've got

<application name="Firefox">
      <decor>no</decor>
    </application>
    <application name="terminator">
        <decor>no</decor>
        <layer>above</layer>
    </application>

One works the other doesn't. BTW this is iceweasel 3.5.16


pay the bills with Windows, obssesed with Linux, studying CCNA when I can fit it in.

Offline

#46 2011-03-21 14:38:27

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 551

Re: post your rc.xml tweaks for openbox.

why don't you use obxprop? I think it ships with openbox now (if not use plain old xprop) and it'll tell you the class, name, etc. of the window. and to maximize windows (not exactly full-screen) you use <maximized>yes</maximized>. Hope this helps!


Punch all your friends.

Offline

#47 2011-03-21 16:03:07

anonymous
The Mystery Member
Registered: 2008-11-29
Posts: 9,419

Re: post your rc.xml tweaks for openbox.

@backer - Did you try it with "class="Firefox*"?

Offline

#48 2011-03-21 18:28:57

becker
#! CrunchBanger
From: Perth, Western Australia
Registered: 2010-02-26
Posts: 245
Website

Re: post your rc.xml tweaks for openbox.

mahatman2 wrote:

why don't you use obxprop? I think it ships with openbox now (if not use plain old xprop) and it'll tell you the class, name, etc. of the window. and to maximize windows (not exactly full-screen) you use <maximized>yes</maximized>. Hope this helps!

Great tip thanks I didn't know about obxprop thats a great program.

Here's the info that obxprop gave me

WM_CLASS(STRING) = "Navigator", "Iceweasel"
WM_ICON_NAME(STRING) = "Get Iceweasel! - Iceweasel"
_NET_WM_ICON_NAME(UTF8_STRING) = "Get Iceweasel! - Iceweasel"

So if I wanted to replace the class="Firefox*" with the correct string would I use name="Get Iceweasel! - Iceweasel"

Last edited by becker (2011-03-21 18:35:08)


pay the bills with Windows, obssesed with Linux, studying CCNA when I can fit it in.

Offline

#49 2011-03-21 18:32:35

becker
#! CrunchBanger
From: Perth, Western Australia
Registered: 2010-02-26
Posts: 245
Website

Re: post your rc.xml tweaks for openbox.

anonymous wrote:

@backer - Did you try it with "class="Firefox*"?

I didn't! I can't believe I missed that earlier today.

2ndly I tried it just now and it didn't work BUT I hadn't noticed the asterisk. Once I added that and resourced it worked a treat! Thanks for the info.


pay the bills with Windows, obssesed with Linux, studying CCNA when I can fit it in.

Offline

Be excellent to each other!

#50 2011-03-21 19:08:34

becker
#! CrunchBanger
From: Perth, Western Australia
Registered: 2010-02-26
Posts: 245
Website

Re: post your rc.xml tweaks for openbox.

You uber geeks (lol) most likely already have something like this set up in your .bashrc's but I thought I'd post it anyway as it is really useful.

alias xp='xprop | grep "WM_WINDOW_ROLE\|WM_CLASS" && echo "WM_CLASS(STRING) = \"NAME\", \"CLASS\""'

pay the bills with Windows, obssesed with Linux, studying CCNA when I can fit it in.

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.
Server: acrobat

Debian Logo