Find the answer to your Linux question:
Results 1 to 5 of 5
I was planning to configure my fluxbox keys to open kthesaurus/wordnet with the selected/clipboard text, but I do not know which variable I should use. I think that %U is ...
  1. #1
    Linux Newbie
    Join Date
    Apr 2007
    Posts
    211

    variables (such as %U) to use in file associations and etc

    I was planning to configure my fluxbox keys to open kthesaurus/wordnet with the selected/clipboard text, but I do not know which variable I should use.

    I think that %U is for files and %u is for directories, but besides that, I do not know of any other.

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Er...I'm not sure what you mean.

    The Fluxbox key config file is ~/.fluxbox/keys. The documentation for it is at:
    http://www.fluxbox.org/docbook/en/html/c298.html

    Can you be more specific on what exactly you're referring to? What variables? For what purpose?
    DISTRO=Arch
    Registered Linux User #388732

  3. #3
    Linux Newbie
    Join Date
    Apr 2007
    Posts
    211
    Thanks, but that doesn't have what I'm looking for... it probably has another thing I'm looking for anyway, a way to set some key binding for "page up"

    I have in my keys file the following command (or something very similar to that):

    control w :exec kthesaurus

    That only opens the kthesaurus/wordweb, but with a blank field. If I knew the variable I want, the line would be:

    control w :exec kthesaurus %x

    (Where x stands for whichever letter it actually would be)

    And then, whenever I select/copy to clipboard some word or expression and press control + w, kthesaurus would open with that text already entered. I know that it works, since if I call from the prompt line "kthesaurus bamboozle", it would open with the synonyms list for "bamboozle".

  4. #4
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    I think I understand what you're saying. You're looking for some variable that will be replaced with the text from the clipboard.

    Unfortunately, I have no idea what that would be, and Google doesn't seem to present much. Maybe someone else will know.
    DISTRO=Arch
    Registered Linux User #388732

  5. #5
    Linux Newbie
    Join Date
    Apr 2007
    Posts
    211
    I've never found the variable I wanted, but I've found another dictionary with which I can make the same thing with the hotkey command being kdict --clipboard

    Here's a link for more information about kdict and on how to make the hotkey for KDE. To fluxbox it's just the usual whichever-hotkey-you-want exec :kdict --clipboard.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...