geneven
|
2008-06-30
, 19:15
|
Posts: 5,795 |
Thanked: 3,151 times |
Joined on Feb 2007
@ Agoura Hills Calif
|
#11
|
|
2008-06-30
, 19:16
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#12
|
I've never used or even looked at Powerlaunch before, but according to the "Powerlaunch" section on the "Powerlaunch: Documentation" page, the software looks for its configuration files--both .conf and .glade--in "/home/user/.powerlaunch" and "/etc/powerlaunch", in that order. Also, by default, the file for which it looks is "powerlaunch.conf". There's an implication that there's a way to get fancy and specify either alternate or additional configuration files, but I didn't notice how to do that at a glance.
|
2008-06-30
, 20:00
|
Posts: 34 |
Thanked: 21 times |
Joined on Feb 2008
|
#13
|
so could someone tell me how I can implement softpoweroff with the keypress that I prefer (shortkeypress on powerkey)?
mkdir ~/.powerlaunch cp /etc/powerlaunch/powerlaunch.conf ~/.powerlaunch
[main] on_init = call common.init.main; inherit systemui.ui; call systemui.ui.layout key_release_power = if $powerkey_short system.device.softpoweroff common.ui.show powerkey_long_release = softpoweron
|
2008-06-30
, 22:36
|
|
Posts: 3,220 |
Thanked: 326 times |
Joined on Oct 2005
@ "Almost there!" (Monte Christo, Count of)
|
#14
|
Well... I used it, before I went all Diablo-happy. I knew I'd go back at some point, but wanted to try out the new improved mce.
The good news: It's not necessary with Diablo, if you're lucky. (I was, the General wasn't, and I think a couple of others may have reported experience one way or the other...) If all you want is softpoweroff, I think that's largely attainable by editing /etc/mce/mce.ini. (I must warn you that there's a warning in mce.ini similar to the one in powerlaunch about making it impossible to shut down... but if you're careful with either program, it's pretty straightforward.)
|
2008-06-30
, 22:54
|
|
Posts: 3,220 |
Thanked: 326 times |
Joined on Oct 2005
@ "Almost there!" (Monte Christo, Count of)
|
#15
|
I'll assume you know how to edit config files and get around command line. There's no graphical configuration tool. Try this:
Now you can edit ~/.powerlaunch.conf as that's the main config file. The section at the top labeled [main] is the primary mode. You probably don't need most of the stuff in there but there's some examples in there such as creating menus or shortcut keys for things you may do often, like running ssh, running top, whatever.Code:mkdir ~/.powerlaunch cp /etc/powerlaunch/powerlaunch.conf ~/.powerlaunch
In any case, here's a simple powerlaunch.conf file (you can just replace the entire file with this) and this will have short power key press go to softpoweroff, long power key release to turn it back on, and long power key press to show the menu (I assume that's what you want, unless you don't want the menu at all).
Code:[main] on_init = call common.init.main; inherit systemui.ui; call systemui.ui.layout key_release_power = if $powerkey_short system.device.softpoweroff common.ui.show powerkey_long_release = softpoweron
|
2008-06-30
, 23:33
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#16
|
|
2008-07-01
, 00:39
|
Posts: 34 |
Thanked: 21 times |
Joined on Feb 2008
|
#17
|
|
2008-07-01
, 00:49
|
|
Posts: 449 |
Thanked: 51 times |
Joined on Apr 2008
@ eastern north carolina usa
|
#18
|
|
2008-07-01
, 01:28
|
Posts: 5,795 |
Thanked: 3,151 times |
Joined on Feb 2007
@ Agoura Hills Calif
|
#19
|
|
2008-07-01
, 15:09
|
Posts: 34 |
Thanked: 21 times |
Joined on Feb 2008
|
#20
|
The Following 2 Users Say Thank You to austin For This Useful Post: | ||