CTKArch · Forums
You are not logged in. Please Register or Login.  |  Search
Posted: May 27, 2011 7:44:30 pm
anitac
icon



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.
Posted: May 28, 2011 8:17:34 pm
Calimero
icon



What's an “urxvt command”? A mystery to me! :)
Marked solved.

Oh, and did you notice that you have obkey in ctkarch, to assist you in creating keybinds?
Posted: May 28, 2011 9:12:17 pm
anitac
icon



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.
Posted: Jun 01, 2011 2:46:42 pm
sztruks
icon



I think you don't need such formulars; for example
Quote:

  <keybind key="S-A-a">
      <action name="Execute">
        <command>setxkbmap fr</command>
      </action>
    </keybind>



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
Posted: Jun 02, 2011 3:51:06 pm
Calimero
icon



@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?
Posted: Jun 03, 2011 9:10:29 am
sztruks
icon



@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  ;)  — and polish (it looks like bépoèw and has a range of Alt-G combinations to have ć ą ó ę ż ś ń instead of using dead keys with Alt-G in official bépo). So I don't switch the keyboard anymore. My wife does, I bound her shortcuts for french and polish layouts.
Posted: Jun 04, 2011 2:18:34 pm
anitac
icon



Thanks Calimero. I don't expect to use CrunchBang again, not after using CTKArch.
Powered by myUPB v2.2.7  ·   Creative Commons License PHP Outburst