The aim is to have "power off" preselected (rather than "cancel") when selecting "exit" from the main menu.
With Statler, the /usr/bin/openbox-logout file needed some simple editing as follows:
You can edit the script /usr/bin/openbox-logout (in sudo) and add the line:
just before the line
So what file needs editing in Waldorf to achieve this?
Bonus: which file can be edited to change the notification default settings?
Last edited by sagesparrow (2012-10-21 12:43:06)
Q1. My guess is it's in the /usr/bin/cb-exit script, but got no idea what to do to achive what you want, although I added a couple more buttons there
Bonus answer maybe: There is a binary /usr/bin/xfce4-notifyd-config. It pops up a gui to set/change a few things. Dunno which file changes are saved to.
Last edited by shem (2012-10-13 06:33:43)
re: editing the cb-exit script
at least I now know that you can't follow the old instructions, i.e. you can't add self.button4.grab_focus()
just before the line
that disabled the entire logout script.
re: changing the notification config with xfce4-notifyd-config.
xfce4-notifyd-config does give a few options and will do. but the color schemes/themes are very limited.
http://goodies.xfce.org/projects/applic … e4-notifyd
My workaround (the lazy way) to get the colors I wanted was to change the configuration of the ZOMG-PONYS! rather than trying to download or make a new theme and get it to show up in the xfce4-notifyd-config window.
under style "ponies-window" bg[NORMAL] = "your desired color for window"
also change the size of the window as desired
under style "ponies-text" change fonts as you like.
So, does no one know what to edit and how in order to make "power off" the button preselected when Exiting?
in /usr/bin/cb-exit move this:
#Shutdown button self.shutdown = gtk.Button("_Power off") self.shutdown.set_border_width(4) self.shutdown.connect("clicked", self.shutdown_action) self.button_box.pack_start(self.shutdown) self.shutdown.show()
above the Cancel button section.
Thanks. I was hoping to do it without moving the buttons around.
Oh, my bad
#Shutdown button self.shutdown = gtk.Button("_Power off") self.shutdown.set_border_width(4) self.shutdown.connect("clicked", self.shutdown_action) self.button_box.pack_start(self.shutdown) self.shutdown.grab_focus() self.shutdown.show()
That's it. Thanks.
I see the problem with my original attempt at this (see 3rd post above). I was using
and i now realize there are now a different # of buttons than previously so the "4" threw it off.