CTKArch · Forums
![]() |
|
---|---|
![]()
Posts: 7
Registered: 2011-05-27 |
I want to bind the command slock to a key but everything I have tried does not work. How can I do this?
Edit: It came to me as soon as I posted. I was trying things like "<command>urxvt --slock</command>" but "<command>slock</command>" is enough. |
Last edited by: anitac on May 27, 2011 7:48:17 pm
|
![]() |
|
---|---|
![]()
Posts: 7
Registered: 2011-05-27 |
I am sure it is obvious that I am fairly new to Linux and there is 'a lot' I do not know. Should I have typed "terminal command"? Does that make sense/fit the context?
Maybe I am completely off the mark. I was going off the obmenu entry I created (with the help of Google) in CrunchBang. PHP Code: <item label="mount"> <action name="Execute"> <execute> terminator --command="sudo mount -t ntfs /dev/sda3 /mnt" </execute> </action> </item> I noticed obkey earlier today. Thanks for including and mentioning it. |
Last edited by: anitac on May 28, 2011 9:26:42 pm
|
![]() |
|
---|---|
![]() ![]() New member
Posts: 65
Registered: 2011-02-21 |
I think you don't need such formulars; for example
Quote: works in my rc.xml. For further details, look at the official doc: openbox.org/wiki/Help:Actions [Edit Calimero] that's rc.xml, not rc.conf |
Last edited by: Calimero on Jun 02, 2011 3:46:54 pm
|
![]() |
|
---|---|
![]() ![]() Administrator
Posts: 551
Registered: 2011-01-20 ![]() |
@anitac: you can run 'commands' (just say commands, that means running an executable as a new process, optionnally with arguments).
But you don't necessarily need to run them in a terminal! Why don't you just do this? XML Code: <item label="mount">
<action name="Execute"> <execute> sudo mount -t ntfs /dev/sda3 /mnt </execute> </action> </item> @sztruks: fun to have a keybind to switch to french keyboard layout. Do you have another one to switch to another layout? |
![]() |
|
---|---|
![]() ![]() New member
Posts: 65
Registered: 2011-02-21 |
@Calimero
I have 3 keybind to switch to keyboard layouts; azerty, bépo-polish and bépo. I don't use them anymore however since I designed my own bepo optimised for french — it's a bépo after all ![]() |
![]() |
|
---|---|
![]()
Posts: 7
Registered: 2011-05-27 |
Thanks Calimero. I don't expect to use CrunchBang again, not after using CTKArch.
|