SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-05-08 21:14:15

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 359

MoC pipemenu & tint2 launcher buttons!

If you use MoC (Music on Console) I found a excellent openbox addon, obmocmenu.
GqhpPl.jpg
Nice! smile
Get it from here. Installation instructions come in the archive. To add it to your openbox menu, first open obmenu. Click on add>pipemenu and edit it to your liking, making sure to have obmocmenu in the Execute field.

Here is a sample config file. YMMV but it should work, as long as you use terminator.

# Configuration file for obmocmenu.

# Place in /etc/obmocmenu.conf for system wide configuration.
# Place in ~/.config/obmocmenu/config for per-user configuration.
# XDG_CONFIG_HOME is respected if it has been set.

# Set mocp command path.
mocp="/usr/bin/mocp"

# Set terminal command path.
term="terminator --geometry 800x480 -e"
#term="/usr/bin/urxvt -e"

# Set moc directory.
moc_dir="$HOME/.moc/"

# Set playlist file that moc uses. You shouldn't need to change this.
#playlist_file="$moc_dir/playlist.m3u"

# Set the directory in which you keep your collection of playlists.
# Files in this directory must end in ".m3u" extension.
playlist_dir="$moc_dir/playlists/"

# Set the directory in which you keep you collection of lists. This
# allows a random directory or song file to be added to the current
# playlist. Files in this directory must end in ".list" extension.
# Each line is an item, which can be the full path to a directory,
# song or playlist. A random item is chosen from this list. If zenity
# is installed, multiple items can be added at once (see below).
randomlist_dir="$playlist_dir/random/"

# Set zenity command path. If zenity is available then multiple random
# items can be added using a graphical dialog. Be warned that adding
# many items at once can be slow.
zenity="/usr/bin/zenity"

I also made some .desktop files to use as buttons in your tint2 launcher, they are here. They are set to use the faenza icon set, as in the screenshot. If you don't have faenza installed you will need to edit the icon, just open the files in gedit/nano/vim/emacs/notepad.

Last edited by hardran3 (2011-05-25 08:22:33)

Offline

Be excellent to each other!

#2 2011-05-09 11:35:10

foxh0und
Member
From: Willow, Alaska
Registered: 2009-02-22
Posts: 23

Re: MoC pipemenu & tint2 launcher buttons!

Nice!


Listen to me! When you die in Alaska you die in real life!

Offline

#3 2011-05-09 12:57:46

Milozzy
#! Die Hard
Registered: 2011-02-22
Posts: 587
Website

Re: MoC pipemenu & tint2 launcher buttons!

Wonderful!!!!! Thank you!!!

Offline

#4 2011-05-11 21:55:44

Grm
Member
Registered: 2009-01-19
Posts: 20

Re: MoC pipemenu & tint2 launcher buttons!

Very nice,thank-you.

Offline

#5 2011-05-12 17:05:50

Milozzy
#! Die Hard
Registered: 2011-02-22
Posts: 587
Website

Re: MoC pipemenu & tint2 launcher buttons!

I am trying to use this, but I cannot get it work...I follow the instructions in the readme file, but when I click on "Open Music Player" on the menu, it does nothing sad

Any help?

Edit: if I start moc manually the pipe menu works perfectly.

Last edited by Milozzy (2011-05-12 18:21:49)

Offline

#6 2011-05-12 18:37:45

Milozzy
#! Die Hard
Registered: 2011-02-22
Posts: 587
Website

Re: MoC pipemenu & tint2 launcher buttons!

Ok, I modify the script itself instead of the config file and now it works...but I still not understand why was this needed.

By the way, considering that #! does not have an audio player by default, I think that moc with this pipe will be a great choice smile

Offline

#7 2011-05-13 00:33:57

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: MoC pipemenu & tint2 launcher buttons!

I'm having the same trouble. Trying to start MOC in Terminator from the pipe menu and getting nothing. So far, I've just changed the terminal path variable, like so:

term="/usr/bin/terminator -x"

Any ideas?


i wonder if i missed the warning
Skinny Puppy, Love in Vein

Offline

#8 2011-05-13 00:36:44

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 359

Re: MoC pipemenu & tint2 launcher buttons!

Here is my config file, it should work as long as you are using terminator.


# Configuration file for obmocmenu.

# Place in /etc/obmocmenu.conf for system wide configuration.
# Place in ~/.config/obmocmenu/config for per-user configuration.
# XDG_CONFIG_HOME is respected if it has been set.

# Set mocp command path.
mocp="/usr/bin/mocp"

# Set terminal command path.
term="terminator --geometry 800x480 -e"
#term="/usr/bin/urxvt -e"

# Set moc directory.
moc_dir="$HOME/.moc/"

# Set playlist file that moc uses. You shouldn't need to change this.
#playlist_file="$moc_dir/playlist.m3u"

# Set the directory in which you keep your collection of playlists.
# Files in this directory must end in ".m3u" extension.
playlist_dir="$moc_dir/playlists/"

# Set the directory in which you keep you collection of lists. This
# allows a random directory or song file to be added to the current
# playlist. Files in this directory must end in ".list" extension.
# Each line is an item, which can be the full path to a directory,
# song or playlist. A random item is chosen from this list. If zenity
# is installed, multiple items can be added at once (see below).
randomlist_dir="$playlist_dir/random/"

# Set zenity command path. If zenity is available then multiple random
# items can be added using a graphical dialog. Be warned that adding
# many items at once can be slow.
zenity="/usr/bin/zenity"

Offline

#9 2011-05-13 00:53:24

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: MoC pipemenu & tint2 launcher buttons!

Thanks, mate - copied and pasted that but unfortunately still no joy sad

EDIT:

Just in case it's relevant, my OB menu entry looks like this:

Label: MOC
ID: obmocmenu
Action:
Execute: obmocmenu

Last edited by safetycopy (2011-05-13 01:00:41)


i wonder if i missed the warning
Skinny Puppy, Love in Vein

Offline

#10 2011-05-13 01:06:39

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: MoC pipemenu & tint2 launcher buttons!

Aha!

It seems my user-specific copy of the config file was NOT overwriting the system-wide config (as I thought it was supposed to). I copied your config into my `/etc/obmocmenu.config` file and now all's well smile


i wonder if i missed the warning
Skinny Puppy, Love in Vein

Offline

#11 2011-05-22 11:08:20

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 466
Website

Re: MoC pipemenu & tint2 launcher buttons!

hardran3 wrote:

If you use MoC (Music on Console) I found a nice openbox addon, obmocmenu.

Get it from here. Installation instructions come in the archive. Gives you a nice pipemenu to control MoC.

dbimage.php?id=298249

how do I get the menu that's in your screenshot to show?
I'm only aware of super tab and super spacebar for client and main menu, and they both look very different from your menu.


#!+mocp=music in my ears

Offline

#12 2011-05-22 16:58:53

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 359

Re: MoC pipemenu & tint2 launcher buttons!

catch22 wrote:

how do I get the menu that's in your screenshot to show?
I'm only aware of super tab and super spacebar for client and main menu, and they both look very different from your menu.

It is the Openbox right click menu(super+space). obmocmenu is a pipemenu that gets added to it.

Last edited by hardran3 (2011-05-22 16:59:27)

Offline

#13 2011-05-22 18:07:17

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 466
Website

Re: MoC pipemenu & tint2 launcher buttons!

hardran3 wrote:

It is the Openbox right click menu(super+space). obmocmenu is a pipemenu that gets added to it.

I see, you completely customized it then, compared to how it is default in Crunchbang; it confused me.

I must've done something wrong, because I don't see anything moc-related appearing in this menu.
When I open mocp in terminal it doesn't look any different either.


#!+mocp=music in my ears

Offline

#14 2011-05-22 18:24:44

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,904

Re: MoC pipemenu & tint2 launcher buttons!

@catch22 - You have to download the MOC pipemenu and add it (look at the first post). Its not a default #! feature.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#15 2011-05-22 18:51:18

rstrcogburn
CrunchRanger
From: The Wild West
Registered: 2010-06-12
Posts: 1,796
Website

Re: MoC pipemenu & tint2 launcher buttons!

@hadran that's awesome dude, wish I was using openbox to be able to use it sad


... and a kind word.  -Duke

Offline

#16 2011-05-22 20:06:02

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 466
Website

Re: MoC pipemenu & tint2 launcher buttons!

anonymous wrote:

@catch22 - You have to download the MOC pipemenu and add it (look at the first post). Its not a default #! feature.

Actually I was referring to the right click Openbox menu there smile

I did download the obmocmenu files, but must have misunderstood the README file somehow.

1. As root, copy "obmocmenu" to "/usr/bin" or anywhere else you have
   included in your $PATH:

    install -m755 obmocmenu /usr/bin/obmocmenu

I have no idea what is meant by "or anywhere else you have
   included in your $PATH:" so I did

sudo cp obmocmenu /usr/bin

and then

install -m755 obmocmenu /usr/bin/obmocmenu

2. Backup any existing configuration files.

foolishly enough I did not do this.

3. As root, copy "obmocmenu.conf" to "/etc/obmocmenu.conf" for global
   configuration:
   
    install -m644 obmocmenu.conf /etc/obmocmenu.conf

4. As your user, copy "obmocmenu.conf" to "~/.config/obmocmenu/config"
   for per-user configuration:

    install -d -m755 ~/.config/obmocmenu/
    install -m644 obmocmenu.conf ~/.config/obmocmenu/config

here also I went for a cp command and then the ones mentioned.
I also overwrote the conf file with the contents of the original poster.

It looks that absolutely nothing has happened though neutral


#!+mocp=music in my ears

Offline

#17 2011-05-22 20:13:37

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,904

Re: MoC pipemenu & tint2 launcher buttons!

Run obmenu and add a pipemenu with obmocmenu as the command.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#18 2011-05-22 20:28:31

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 466
Website

Re: MoC pipemenu & tint2 launcher buttons!

anonymous wrote:

Run obmenu and add a pipemenu with obmocmenu as the command.

I managed to add it (this was a first for me smile) and now do see "mocp obmocmenu" appearing on right click, but clicking it does nothing.
I did type "obmocmenu" as command in the new item in obmenu.


#!+mocp=music in my ears

Offline

#19 2011-05-23 02:00:05

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,904

Re: MoC pipemenu & tint2 launcher buttons!

Does it make a difference if you actually have MOC running while you try to access the menu?


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#20 2011-05-23 06:42:21

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 359

Re: MoC pipemenu & tint2 launcher buttons!

anonymous wrote:

Does it make a difference if you actually have MOC running while you try to access the menu?

If the moc daemon is not running it gives you a menu entry to open moc.

Offline

#21 2011-05-23 19:37:21

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 466
Website

Re: MoC pipemenu & tint2 launcher buttons!

hardran3 wrote:
anonymous wrote:

Does it make a difference if you actually have MOC running while you try to access the menu?

If the moc daemon is not running it gives you a menu entry to open moc.

Not here.
Nothing happens; moc playing or not, there's no menu that opens.


#!+mocp=music in my ears

Offline

#22 2011-05-23 22:39:23

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 359

Re: MoC pipemenu & tint2 launcher buttons!

catch22 wrote:

Not here.
Nothing happens; moc playing or not, there's no menu that opens.

Check my edit to the OP. you need to add it to the menu by hand smile

Offline

#23 2011-05-24 14:45:58

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 466
Website

Re: MoC pipemenu & tint2 launcher buttons!

hardran3 wrote:
catch22 wrote:

Not here.
Nothing happens; moc playing or not, there's no menu that opens.

Check my edit to the OP. you need to add it to the menu by hand smile

Aha! It was this part that I didn't do right first:

Click on add>pipemenu

Thanks smile


#!+mocp=music in my ears

Offline

#24 2011-05-25 00:25:33

crunchy
#! Junkie
From: Juneau, AK, USA
Registered: 2010-08-19
Posts: 461

Re: MoC pipemenu & tint2 launcher buttons!

I am having trouble getting this to work sad .

I believe that my problem is with the menu. It would be great if someone could copy-and-paste the line that allows them to do this from the menu.xml file.

I have already tried everything above me and it doesn't seem to work. sad

EDIT: nevermind, I figured it out somehow roll . I have no clue how though.

Last edited by crunchy (2011-05-25 00:29:39)


registered Linux user: #533379
registered #! user: #6769
Whenever someone calls me a computer 'nerd' or a 'Unix-based-system'
all I can think is: You just wait. In a couple of years. I'll be your IT. Then where will you be!

Offline

Be excellent to each other!

#25 2011-05-25 07:27:48

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 359

Re: MoC pipemenu & tint2 launcher buttons!

crunchy wrote:

nevermind, I figured it out somehow roll . I have no clue how though.

Good Job smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo