Results 1 to 5 of 5

Thread: [SOLVED] Pause cplay with Openbox keybind

  1. #1
    Join Date
    Sep 2006
    Beans
    3,713

    [SOLVED] Pause cplay with Openbox keybind

    When I previously used Gnome with Quod Libet I could create a hotkey that would run the "quodlibet --pause" command. cplay doesn't have a pause command that I know of, so I have to manually bring up the terminal and then press "z", which pauses cplay. I would rather just use a hotkey or keybind in Openbox to pause cplay. How can I do this?

  2. #2
    Join Date
    Jul 2006
    Beans
    1,152

    Re: Pause cplay with Openbox keybind

    I'm not sure it is possible, unless one of the apps cplay uses (such as mpg123 or mpg321) support it.

    Why don't you use mpd with ncmpc? You can easily control mpd on the command line with mpc. I know it can be annoying if you want to play files that are not in your database, but otherwise mpd is great.

  3. #3
    Join Date
    Sep 2006
    Beans
    3,713

    Re: Pause cplay with Openbox keybind

    Thanks for the quick reply. Is there a way to keybind to focus a particular window if it is in the background without having to alt+tab or middleclick? If not, then I suppose I'll dump cplay. I installed mpd and ncmpcpp eariler today, but thought I would give cplay one more chance since I like its databaseless simplicity.

  4. #4
    Join Date
    Jul 2006
    Beans
    1,152

    Re: Pause cplay with Openbox keybind

    You could modify this script I talked about on my blog and bind that to a keybind in Openbox. You'll need wmctrl installed for that.

  5. #5
    Join Date
    Sep 2006
    Beans
    3,713

    Re: Pause cplay with Openbox keybind

    Thanks. It worked just fine. I really should keep up with your blog.

Tags for this Thread

Bookmarks

Posting Permissions

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