You are not logged in.
@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
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
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
Offline
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
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
My titlebar has no buttons
Is that possible?! I can make them the same color as the background but I know they are there...
Offline
Of course its possible. Using obconf go to Appearance -> Window Titles. I have mine just as "L" so it only has the title.
Offline
Ha! Of course I forgot to check the configuration manager 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
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
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
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
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
<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
Offline
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
Just FYI Unia, I'm gonna merge this with an existing thread.
Offline
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
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
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
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
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
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
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
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
@backer - Did you try it with "class="Firefox*"?
Offline
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
@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
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
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