SEARCH

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

You are not logged in.

#1 2012-09-29 19:42:49

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

MOCP from OB Menu

Hi,

Trying to configure openbox menu to start mocp.

Been trying differing uses of:

terminator -x mocp -m ~/path/to/your/music -T config

But to no avail.

Anyone have any ideas?

Thanks. smile

Offline

Be excellent to each other!

#2 2012-09-29 19:46:21

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 9,006

Re: MOCP from OB Menu

Try:

terminator --command="mocp -m ~/path/to/your/music -T config"

while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

Online

#3 2012-09-29 19:47:25

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

ha, thanks. Just messaged you to delete this post as I thought it was irrelevant.

Will then have a look at the pipe menu

smile

Last edited by dura (2012-09-29 19:47:36)

Offline

#4 2012-09-29 19:50:59

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

I'm trying it through obmen gui config, rather than menu.xml, if that makes any difference.

It makes a terminal flash up for a millisecond

Offline

#5 2012-09-29 19:54:35

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

This is the line in menu.xml

<item label="MOC">
                <action name="Execute">
                    <execute>terminator --command="mocp -m /home/crunchbang/music -T config"&quot;</execute>
                </action>

Offline

#6 2012-09-29 19:57:47

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 9,006

Re: MOCP from OB Menu

Is "config" the name of your MOC configuration/theme file?  Try running the command in quotes (without the quotes) in a terminal and see what error message you get.  You may need to specify the full path to the theme.

EDIT:  I also notice there's an "&quot;" in your command line.  Is this a copy/pasta error?


while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

Online

#7 2012-09-29 19:59:48

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

I haven't configured any theme file at all. All I have done is started mocp in a terminal, and then wanted to get it working via obmenu. I read something about theme but didn't think it was relevant (my laziness and desire to just ask instead perhaps...)

Edit: Sorry I've just found the relevant thread and will have a go at it...didn't realise there was more to it....have some experience with mpd and thought this was just a player and hence simpler, and cos I could just browse with it

Last edited by dura (2012-09-29 20:01:45)

Offline

#8 2012-09-29 20:03:06

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

the command you suggested just in quotes responds with:

FATAL_ERROR: Can't open theme file: No such file or directory

Offline

#9 2012-09-29 20:06:29

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 9,006

Re: MOCP from OB Menu

That's the error I saw too.  Try just this:

<item label="MOC">
                <action name="Execute">
                    <execute>terminator --command="mocp -m /home/crunchbang/music"</execute>
                </action>

while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

Online

#10 2012-09-29 20:09:46

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

Same response- it just flashes up a terminal very briefly.

Should I be playing with the config file? I just copied one as suggested on the cb moc config page.

Thanks

Offline

#11 2012-09-29 20:16:43

pidsley
#! Die Hard
Registered: 2012-05-23
Posts: 1,348

Re: MOCP from OB Menu

Put the start directory and the theme spec in your local moc config file (~/.moc/config) and just use

<execute>terminator -e mocp</execute>

in menu.xml.

For more information, type this in a terminal:

man mocp

Last edited by pidsley (2012-09-29 20:17:43)

Offline

#12 2012-09-29 20:29:42

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

Thanks.

Same response though:

In moc config I put the following for theme:

# Theme file. This can be absolute path or relative to
/home/crunchbang/.moc/themes/
Theme            = bluethememoc

In menu.xml:

     <item label="MOC">
                <action name="Execute">
                    <execute>terminator -e mocp</execute>
                </action>

Edit: I copied the folder containing the music files to .moc, and created a folder in .moc called themes, where I saved the bluethememoc file I created from copying the suggested theme config on the cb moc config page.

Last edited by dura (2012-09-29 20:32:11)

Offline

#13 2012-09-29 20:32:25

pidsley
#! Die Hard
Registered: 2012-05-23
Posts: 1,348

Re: MOCP from OB Menu

Same what response? Terminal flashes briefly?

Strange. That works for me, but I don't have a config file.

Try it without the config file. Just rename the config for now. You can get back to that once you have it working.

What happens if you just type this in a terminal:

terminator -e mocp

When you get it working, copy the default config file example (/usr/share/doc/moc/examples/config.example.gz) to your .moc directory and use the comments in the file to help you modify it.

cp /usr/share/doc/moc/examples/config.example.gz ~/.moc/config

Last edited by pidsley (2012-09-29 20:42:09)

Offline

#14 2012-09-29 20:40:21

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

Yep, just flashes up and disappears.

When I type what you suggested in terminal this happens!

crunchbang@crunchbang:~$ #---------------------------------------------
crunchbang@crunchbang:~$ # TINT2 CONFIG FILE
crunchbang@crunchbang:~$ #---------------------------------------------
crunchbang@crunchbang:~$ # For more information about tint2, see:
crunchbang@crunchbang:~$ # http://code.google.com/p/tint2/wiki/Welcomecrunchbang@crunchbang:~$ #
crunchbang@crunchbang:~$ # For more config file examples, see:
crunchbang@crunchbang:~$ # http://crunchbanglinux.org/forums/topic/3232/my-tint2-config/
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Background definitions
crunchbang@crunchbang:~$ # ID 1
crunchbang@crunchbang:~$ rounded = 0
bash: rounded: command not found
crunchbang@crunchbang:~$ border_width = 0
bash: border_width: command not found
crunchbang@crunchbang:~$ background_color = #ffffff 4
bash: background_color: command not found
crunchbang@crunchbang:~$ border_color = #828282 0
bash: border_color: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # ID 2 - task active
crunchbang@crunchbang:~$ rounded = 0
bash: rounded: command not found
crunchbang@crunchbang:~$ border_width = 0
bash: border_width: command not found
crunchbang@crunchbang:~$ background_color = #ffffff 8
bash: background_color: command not found
crunchbang@crunchbang:~$ border_color = #d8b8d8 20
bash: border_color: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # ID 3 - task
crunchbang@crunchbang:~$ rounded = 0
bash: rounded: command not found
crunchbang@crunchbang:~$ border_width = 0
bash: border_width: command not found
crunchbang@crunchbang:~$ background_color = #000000 0
bash: background_color: command not found
crunchbang@crunchbang:~$ border_color = #000000 0
bash: border_color: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # ID 4
crunchbang@crunchbang:~$ rounded = 0
bash: rounded: command not found
crunchbang@crunchbang:~$ border_width = 0
bash: border_width: command not found
crunchbang@crunchbang:~$ background_color = #888888 20
bash: background_color: command not found
crunchbang@crunchbang:~$ border_color = #ED2323 60
bash: border_color: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # ID 5 - taskbar
crunchbang@crunchbang:~$ rounded = 0
bash: rounded: command not found
crunchbang@crunchbang:~$ border_width = 0
bash: border_width: command not found
crunchbang@crunchbang:~$ background_color = #000000 0
bash: background_color: command not found
crunchbang@crunchbang:~$ border_color = #000000 0
bash: border_color: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # ID 6 - active taskbar
crunchbang@crunchbang:~$ rounded = 0
bash: rounded: command not found
crunchbang@crunchbang:~$ border_width = 0
bash: border_width: command not found
crunchbang@crunchbang:~$ background_color = #f8f8f8 4
bash: background_color: command not found
crunchbang@crunchbang:~$ border_color = #d8d8d8 0
bash: border_color: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # ID 7 - tooltip
crunchbang@crunchbang:~$ rounded = 3
bash: rounded: command not found
crunchbang@crunchbang:~$ border_width = 0
bash: border_width: command not found
crunchbang@crunchbang:~$ background_color = #222222 70
bash: background_color: command not found
crunchbang@crunchbang:~$ border_color = #222222 90
bash: border_color: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # ID 8
crunchbang@crunchbang:~$ rounded = 0
bash: rounded: command not found
crunchbang@crunchbang:~$ border_width = 0
bash: border_width: command not found
crunchbang@crunchbang:~$ background_color = #888888 20
bash: background_color: command not found
crunchbang@crunchbang:~$ border_color = #888888 20
bash: border_color: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Panel (add L for launcher)
crunchbang@crunchbang:~$ panel_monitor = all
bash: panel_monitor: command not found
crunchbang@crunchbang:~$ panel_position = bottom center horizontal
bash: panel_position: command not found
crunchbang@crunchbang:~$ panel_items = TSBC
bash: panel_items: command not found
crunchbang@crunchbang:~$ panel_size = 100% 15
bash: panel_size: command not found
crunchbang@crunchbang:~$ panel_margin = 0 4
bash: panel_margin: command not found
crunchbang@crunchbang:~$ panel_padding = 0 0
bash: panel_padding: command not found
crunchbang@crunchbang:~$ panel_dock = 0
bash: panel_dock: command not found
crunchbang@crunchbang:~$ wm_menu = 1
bash: wm_menu: command not found
crunchbang@crunchbang:~$ panel_layer = bottom
bash: panel_layer: command not found
crunchbang@crunchbang:~$ panel_background_id = 1
bash: panel_background_id: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Panel Autohide
crunchbang@crunchbang:~$ autohide = 0
bash: autohide: command not found
crunchbang@crunchbang:~$ autohide_show_timeout = 0.1
bash: autohide_show_timeout: command not found
crunchbang@crunchbang:~$ autohide_hide_timeout = 0.1
bash: autohide_hide_timeout: command not found
crunchbang@crunchbang:~$ autohide_height = 30
bash: autohide_height: command not found
crunchbang@crunchbang:~$ strut_policy = follow_size
bash: strut_policy: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Taskbar
crunchbang@crunchbang:~$ taskbar_mode = single_monitor
bash: taskbar_mode: command not found
crunchbang@crunchbang:~$ taskbar_padding = 0 0 6
bash: taskbar_padding: command not found
crunchbang@crunchbang:~$ taskbar_background_id = 5
bash: taskbar_background_id: command not found
crunchbang@crunchbang:~$ taskbar_active_background_id = 6
bash: taskbar_active_background_id: command not found
crunchbang@crunchbang:~$ taskbar_name = 0
bash: taskbar_name: command not found
crunchbang@crunchbang:~$ taskbar_name_background_id = 0
bash: taskbar_name_background_id: command not found
crunchbang@crunchbang:~$ taskbar_name_active_background_id = 0
bash: taskbar_name_active_background_id: command not found
crunchbang@crunchbang:~$ taskbar_name_font = Liberation Mono 9
bash: taskbar_name_font: command not found
crunchbang@crunchbang:~$ taskbar_name_font_color = #828282 100
bash: taskbar_name_font_color: command not found
crunchbang@crunchbang:~$ taskbar_name_active_font_color = #828282 100
bash: taskbar_name_active_font_color: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Tasks
crunchbang@crunchbang:~$ urgent_nb_of_blink = 20
bash: urgent_nb_of_blink: command not found
crunchbang@crunchbang:~$ task_icon = 1
bash: task_icon: command not found
crunchbang@crunchbang:~$ task_text = 1
bash: task_text: command not found
crunchbang@crunchbang:~$ task_centered = 0
bash: task_centered: command not found
crunchbang@crunchbang:~$ task_maximum_size = 300 300
bash: task_maximum_size: command not found
crunchbang@crunchbang:~$ task_padding = 2 2
bash: task_padding: command not found
crunchbang@crunchbang:~$ task_background_id = 3
bash: task_background_id: command not found
crunchbang@crunchbang:~$ task_active_background_id = 2
bash: task_active_background_id: command not found
crunchbang@crunchbang:~$ task_urgent_background_id = 4
bash: task_urgent_background_id: command not found
crunchbang@crunchbang:~$ task_iconified_background_id = 3
bash: task_iconified_background_id: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Task Icons
crunchbang@crunchbang:~$ task_icon_asb = 60 0 0
bash: task_icon_asb: command not found
crunchbang@crunchbang:~$ task_active_icon_asb = 90 50 50
bash: task_active_icon_asb: command not found
crunchbang@crunchbang:~$ task_urgent_icon_asb = 100 50 50
bash: task_urgent_icon_asb: command not found
crunchbang@crunchbang:~$ task_iconified_icon_asb = 80 50 50
bash: task_iconified_icon_asb: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Fonts
crunchbang@crunchbang:~$ task_font = Liberation Mono 06_55 6
bash: task_font: command not found
crunchbang@crunchbang:~$ task_font_color = #FFFFFF 40
bash: task_font_color: command not found
crunchbang@crunchbang:~$ task_active_font_color = #FFFFFF 80
bash: task_active_font_color: command not found
crunchbang@crunchbang:~$ task_urgent_font_color = #FFFFFF 90
bash: task_urgent_font_color: command not found
crunchbang@crunchbang:~$ task_iconified_font_color = #FFFFFF 60
bash: task_iconified_font_color: command not found
crunchbang@crunchbang:~$ font_shadow = 0
bash: font_shadow: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Launcher
crunchbang@crunchbang:~$ launcher_padding = 8 4 4
bash: launcher_padding: command not found
crunchbang@crunchbang:~$ launcher_background_id = 1
bash: launcher_background_id: command not found
crunchbang@crunchbang:~$ launcher_icon_size = 18
bash: launcher_icon_size: command not found
crunchbang@crunchbang:~$ launcher_icon_asb = 70 50 50
bash: launcher_icon_asb: command not found
crunchbang@crunchbang:~$ # Specify icon theme names with launcher_icon_theme. 
crunchbang@crunchbang:~$ # if you have an XSETTINGS manager running (like xfsettingsd), tint2 will follow your current theme.
crunchbang@crunchbang:~$ launcher_icon_theme = gnome-colors-statler
bash: launcher_icon_theme: command not found
crunchbang@crunchbang:~$ # Each launcher_item_app must be a full path to a .desktop file
crunchbang@crunchbang:~$ launcher_item_app = /usr/share/applications/terminator.desktop
bash: launcher_item_app: command not found
crunchbang@crunchbang:~$ launcher_item_app = /usr/share/applications/geany.desktop
bash: launcher_item_app: command not found
crunchbang@crunchbang:~$ launcher_item_app = /usr/share/applications/iceweasel.desktop
bash: launcher_item_app: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # System Tray
crunchbang@crunchbang:~$ systray = 1
bash: systray: command not found
crunchbang@crunchbang:~$ systray_padding = 5 0 5
bash: systray_padding: command not found
crunchbang@crunchbang:~$ systray_sort = ascending
bash: systray_sort: command not found
crunchbang@crunchbang:~$ systray_background_id = 1
bash: systray_background_id: command not found
crunchbang@crunchbang:~$ systray_icon_size = 13
bash: systray_icon_size: command not found
crunchbang@crunchbang:~$ systray_icon_asb = 30 0 0
bash: systray_icon_asb: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Clock
crunchbang@crunchbang:~$ time1_format = %H:%M
bash: time1_format: command not found
crunchbang@crunchbang:~$ time1_font = Liberation Mono 8
bash: time1_font: command not found
crunchbang@crunchbang:~$ #time2_format = %A %d %B
crunchbang@crunchbang:~$ #time2_font = Liberation Sans 6
crunchbang@crunchbang:~$ clock_font_color = #828282 70
bash: clock_font_color: command not found
crunchbang@crunchbang:~$ clock_padding = 8 4
bash: clock_padding: command not found
crunchbang@crunchbang:~$ clock_background_id = 1
bash: clock_background_id: command not found
crunchbang@crunchbang:~$ clock_lclick_command = gsimplecal
bash: clock_lclick_command: command not found
crunchbang@crunchbang:~$ clock_rclick_command = gsimplecal
bash: clock_rclick_command: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Tooltips
crunchbang@crunchbang:~$ tooltip = 0
bash: tooltip: command not found
crunchbang@crunchbang:~$ tooltip_padding = 2 2
bash: tooltip_padding: command not found
crunchbang@crunchbang:~$ tooltip_show_timeout = 0.0
bash: tooltip_show_timeout: command not found
crunchbang@crunchbang:~$ tooltip_hide_timeout = 0.0
bash: tooltip_hide_timeout: command not found
crunchbang@crunchbang:~$ tooltip_background_id = 7
bash: tooltip_background_id: command not found
crunchbang@crunchbang:~$ tooltip_font_color = #d8d8d8 100
bash: tooltip_font_color: command not found
crunchbang@crunchbang:~$ tooltip_font = Liberation Sans normal 9.0
bash: tooltip_font: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Mouse
crunchbang@crunchbang:~$ mouse_middle = none
bash: mouse_middle: command not found
crunchbang@crunchbang:~$ mouse_right = toggle
bash: mouse_right: command not found
crunchbang@crunchbang:~$ mouse_scroll_up = toggle
bash: mouse_scroll_up: command not found
crunchbang@crunchbang:~$ mouse_scroll_down = iconify
bash: mouse_scroll_down: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # Battery
crunchbang@crunchbang:~$ battery = 1
bash: battery: command not found
crunchbang@crunchbang:~$ battery_low_status = 20
bash: battery_low_status: command not found
crunchbang@crunchbang:~$ battery_low_cmd = notify-send "battery low"
bash: battery_low_cmd: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ battery
bash: battery: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ _
bash: _: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ hide = 100
bash: hide: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ bat1_font = Liberation Mono 6
bash: bat1_font: command not found
crunchbang@crunchbang:~$ bat2_font = Liberation Mono 6
bash: bat2_font: command not found
crunchbang@crunchbang:~$ battery_font_color = #828282 70
bash: battery_font_color: command not found
crunchbang@crunchbang:~$ battery_padding = 8 0
bash: battery_padding: command not found
crunchbang@crunchbang:~$ battery_background_id = 1
bash: battery_background_id: command not found
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ # End of config
crunchbang@crunchbang:~$ 
crunchbang@crunchbang:~$ 

When I just type mocp in a terminal it works

When I rename config the same happens as well (flashes up only)

Last edited by dura (2012-09-29 20:46:32)

Offline

#15 2012-09-29 20:42:52

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

aha....

when I now type mocp in terminal, I get this response:

FATAL_ERROR: Error in config file: missing option value on line 199!

The line it is referring to is the /home/crunchbang... one below

# Theme file. This can be absolute path or relative to
/home/crunchbang/.moc/themes/
Theme            = bluethememoc

Thanks

Offline

#16 2012-09-29 20:45:55

pidsley
#! Die Hard
Registered: 2012-05-23
Posts: 1,348

Re: MOCP from OB Menu

Now you're just making this up. smile That is very strange. Somehow you're sending your tint2 config file to stdout.

What about

terminator --command=mocp

I'm going to stop trying to help people for a while. I'm failing miserably.

If you get it working without a config file, see my post above yours for how to use the config properly.

Last edited by pidsley (2012-09-29 20:46:25)

Offline

#17 2012-09-29 20:47:58

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

sending my tint2 config file....wait a sec then, I might have made a stupid mistake...

Thanks for the help- amazing this place!

Offline

#18 2012-09-29 20:51:08

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

Ha! It works!

Just renamed my config file and used the above command you gave.

Wonderful! Don't go giving up helping people just yet!

Thanks both! Love this music on console!

Yay smile

Offline

#19 2012-09-29 20:51:35

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 9,006

Re: MOCP from OB Menu

It wouldn't involve "/home/crunchbang" by any chance? wink


while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

Online

#20 2012-09-29 20:53:03

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,077

Re: MOCP from OB Menu

I wouldn't be surprised, and yes, it is an awful, unimaginative, reaction username. I need to get round to changing. It's just such a great distro name...

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