You are not logged in.
Is there a way to change which button is selected by default when using "exit" off the main menu (or openbox-logout via terminal)? A way that doesn't involve changing the order that the buttons via openbox-logout is preferable. The way it stands now, the default selection is "cancel". I would prefer the default selection to be "shutdown" so that i could just use the enter key to shutdown rather than the mouse or arrows and enter.
Are many out there using the oblogout script instead of the default openbox-logout with Statler?
Last edited by sagesparrow (2011-01-14 00:15:31)
Offline
I use it but modified to work with SLiM.
I have not changed the default button though.
There's a reason you separate military and the police. One fights the enemies of the state, the other serves and protects the people. When the military becomes both, then the enemies of the state tend to become the people.
Offline
Hello,
You can edit the script /usr/bin/openbox-logout (in sudo) and add the line:
self.button4.grab_focus()just before the line
self.button4.show()Don' forget to make a backup before editing the file ;-)
hth
Offline
That did it. Thanks.
Offline
hello,
i was thrilled to see somebody else had already asked this same question but when i try to follow in their footsteps i run into a road block:
i.m having trouble locating thatscript on my machine. when i navigate to /usr/bin i can find only 4 references to openbox (excluding entries that start with "ob"--none of which refer to 'logout'), they are as follows:
openbox
openbox-gnome-session
openbox-kde-session
openbox-sessionjust for kicks i tried to nano openbox-session but that proved fruitless. and did i read that reference to sudo correctly? i.ve never used sudo to change directories and it doesn.t seem to understand when i do:
zello@crunchbang:/home$ sudo cd /usr/bin
sudo: cd: command not foundanybody see what i.m doing wrong...?
Offline
anybody see what i.m doing wrong...?
You're looking at threads from last year (January 2011 to be exact). The other thread about key bindings where I answered your question was even older. I should have mentioned it then, sorry. You can't find openbox-logout because #! doesn't use it now. You can see what is being called if you open the openbox menu (~/.config/openbox/menu.xml) and find this section:
<item label="Exit">
<action name="Execute">
<execute>
cb-exit
</execute>
</action>
</item>Now you can go find the cb-exit script, make a backup, and edit it:
cd /usr/bin
sudo cp cb-exit cb-exit.bak
gksudo geany cb-exitFind this section
#Shutdown button
self.shutdown = gtk.Button("_Shutdown")
self.shutdown.set_border_width(4)
self.shutdown.connect("clicked", self.shutdown_action)
self.button_box.pack_start(self.shutdown)
self.shutdown.show()And add the grab_focus code:
#Shutdown button
self.shutdown = gtk.Button("_Shutdown")
self.shutdown.set_border_width(4)
self.shutdown.connect("clicked", self.shutdown_action)
self.button_box.pack_start(self.shutdown)
self.logout.grab_focus()
self.shutdown.show()Last edited by 2ManyDogs (2012-03-03 03:50:16)
Be eggsalad to each other.
Offline
I think I should add one more comment, trying to be helpful and not at all mean, so please take it that way. It's usually not a good idea to tack onto an older thread, especially if the original poster has marked it SOLVED -- many people will not see your comment, as they assume the subject has been solved and move on. There is even a term for adding on to old threads -- it's called "necro bumping" because you are resurrecting a thread that should be dead. You will get better answers if you start new threads for your questions -- you can link to an old thread (use the url tags) to show people what you've tried, but don't just add on to the end of an old thread.
Again -- trying to be helpful, not mean...
Last edited by 2ManyDogs (2012-03-03 04:10:24)
Be eggsalad to each other.
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.