You are not logged in.

#26 2005-08-05 12:34:50

denstark
Member
Registered: 2005-08-05
Posts: 15
Website

Re: Openbox Resource Thread 2

Legout wrote:

YEAH!!!

THIS SITE IS BACK ONLINE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

http://denstark.homelinux.org/~tim/openbox.php

:twisted:  lol  smile  big_smile  :shock:  tongue  :!:

Well, glad to see that I have at least one fan  :twisted:

Offline

#27 2005-08-05 16:39:10

Legout
Member
From: Wuerburg/germany
Registered: 2004-01-19
Posts: 292

Re: Openbox Resource Thread 2

denstark wrote:
Legout wrote:

YEAH!!!

THIS SITE IS BACK ONLINE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

http://denstark.homelinux.org/~tim/openbox.php

:twisted:  lol  smile  big_smile  :shock:  tongue  :!:

Well, glad to see that I have at least one fan  :twisted:

big_smile

This site is really cool for Openbox users. But one thing. the et-menu is out of date, there´s a much newer one. have a look here. maybe u can add this to your site.

BTW. Do u use Arch Linux?? Or how do u come to this forum?

Offline

#28 2005-08-05 17:43:36

johnisevil
Member
From: Hamilton, ON Canada
Registered: 2003-08-07
Posts: 221
Website

Re: Openbox Resource Thread 2

After a lot of laziness I decided to update my ob-mpd.py pipemenu script and added a new feature.

#!/usr/bin/env python
#
# Author: John McKnight <jmcknight@gmail.com>
# License: GPL 2.0
#
# This script depends on py-libmpdclient which you can get from 
# http://www.musicpd.org/py-libmpdclient.shtml
#
# Usage:
# Put an entry in ~/.config/openbox/menu.xml:
# <menu id="mpd" label="MPD" execute="~/.config/openbox/scripts/ob-mpd-$version.py" />
#
# Then put the following wherever you'd like it to be displayed in your menu:
# <menu id="mpd" />
#
# New in 0.2:  Added a controls menu that allows you to play, pause and stop
#              MPD from the Openbox menu.

import mpdclient, sys

# The default port for MPD is 6600.  If for some reason you have MPD running
# on a different port, change this setting to whatever you have it running on.
mpd_port = 6600

connect = mpdclient.MpdController(port=mpd_port)
song = connect.getCurrentSong()
status = connect.status()

def play():
  if status.stateStr() == "stop" or status.stateStr() == "pause":
    connect.play()
  else:
    pass

def pause():
  if status.stateStr() == "play":
    connect.pause()
  elif status.stateStr() == "pause":
    connect.play()
  else:
    pass

def stop():
  if status.stateStr() == "play" or status.stateStr() == "pause":
    connect.stop()
  else:
    pass

try:
  if (sys.argv[1] == "play"):
    play()

  if (sys.argv[1] == "pause"):
    pause()

  if (sys.argv[1] == "stop"):
    stop()
except IndexError:
  pass

print "<?xml version="1.0" encoding="UTF-8"?>"
print "<openbox_pipe_menu>"
print "  <menu id="controls" label="Controls">"
print "    <item label="Play">"
print "      <action name="Execute"><execute>~/.config/openbox/scripts/ob-mpd-0.2.py play</execute></action>"
print "    </item>"
print "    <item label="Pause">"
print "      <action name="Execute"><execute>~/.config/openbox/scripts/ob-mpd-0.2.py pause</execute></action>"
print "    </item>"
print "    <item label="Stop">"
print "      <action name="Execute"><execute>~/.config/openbox/scripts/ob-mpd-0.2.py stop</execute></action>"
print "    </item>"
print "  </menu>"
print "  <separator />"

if status.stateStr() == "stop":
  print "  <item label="Not playing"/>"
elif status.stateStr() == "pause":
  print "  <item label="Playing: %s - %s (paused)"/>" % (song.artist, song.title)
else:
  print "  <item label="Playing: %s - %s"/>" % (song.artist, song.title)
print "</openbox_pipe_menu>"

Copy and paste that and save as ~/.config/openbox/scripts/ob-mpd-0.2.py or you can just grab the script from here: http://avarice.oneeightseven.org/projects/ob-mpd.py/

Offline

#29 2005-08-06 12:42:06

denstark
Member
Registered: 2005-08-05
Posts: 15
Website

Re: Openbox Resource Thread 2

Legout wrote:
denstark wrote:
Legout wrote:

YEAH!!!

THIS SITE IS BACK ONLINE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

http://denstark.homelinux.org/~tim/openbox.php

:twisted:  lol  smile  big_smile  :shock:  tongue  :!:

Well, glad to see that I have at least one fan  :twisted:

big_smile

This site is really cool for Openbox users. But one thing. the et-menu is out of date, there´s a much newer one. have a look here. maybe u can add this to your site.

BTW. Do u use Arch Linux?? Or how do u come to this forum?

No, I Don't use Archlinux... someone pointed me to this post smile I am however interested in trying it. I'll start looking it up smile

Oh, as for Syscrash's new menu, once I talk to him and make sure its cool to put it on my site, I will.

Offline

#30 2005-08-06 12:42:52

denstark
Member
Registered: 2005-08-05
Posts: 15
Website

Re: Openbox Resource Thread 2

johnisevil wrote:

After a lot of laziness I decided to update my ob-mpd.py pipemenu script and added a new feature.

[code]>Snip</code]

Copy and paste that and save as ~/.config/openbox/scripts/ob-mpd-0.2.py or you can just grab the script from here: http://avarice.oneeightseven.org/projects/ob-mpd.py/

Mind if I put this on my Openbox Resource Site (http://denstark.homelinux.org/~tim/)?

Offline

#31 2005-08-06 16:09:34

johnisevil
Member
From: Hamilton, ON Canada
Registered: 2003-08-07
Posts: 221
Website

Re: Openbox Resource Thread 2

Mind if I put this on my Openbox Resource Site (http://denstark.homelinux.org/~tim/)?

Not at all, I was actually going to ask you about putting it up or linking it on your Openbox resource site.

Offline

#32 2005-08-06 22:59:05

denstark
Member
Registered: 2005-08-05
Posts: 15
Website

Re: Openbox Resource Thread 2

johnisevil wrote:

Mind if I put this on my Openbox Resource Site (http://denstark.homelinux.org/~tim/)?

Not at all, I was actually going to ask you about putting it up or linking it on your Openbox resource site.

Sure, I'll put it up in a bit when I get some time... got some company at the moment.

Offline

#33 2005-08-07 00:29:34

keevn7
Member
From: Lancaster, OH, US
Registered: 2005-06-09
Posts: 206
Website

Re: Openbox Resource Thread 2

I have some Openbox stuff on my website. It is on Denstark's page under the name "Pwnz3r" but I think his versions of my scripts are outdated. To get there, click on the image in my signature and follow the menus to the Openbox stuff. I know you guys can do it. tongue

Offline

#34 2005-08-10 20:15:03

denstark
Member
Registered: 2005-08-05
Posts: 15
Website

Re: Openbox Resource Thread 2

Just to bump the thread a little bit, I updated my site to a Content management system, and am looking for some users to start contributing to it. I have all the old scripts up. All those interested, lets try to make this a hub for openbox themes/scripts.

http://denstark.homelinux.org/~tim/

Offline

#35 2005-08-11 13:11:57

Lowe
Member
Registered: 2005-07-11
Posts: 89

Re: Openbox Resource Thread 2

denstark: Nice site, it's a lot easier to browse now. Good job.  tongue

Offline

#36 2005-08-13 00:30:14

denstark
Member
Registered: 2005-08-05
Posts: 15
Website

Re: Openbox Resource Thread 2

Lowe wrote:

denstark: Nice site, it's a lot easier to browse now. Good job.  tongue

Thanks, glad to hear that.

Offline

#37 2005-08-13 12:47:24

cmp
Member
Registered: 2005-01-03
Posts: 350

Re: Openbox Resource Thread 2

I created my own replacement for the client-list-menu. It shows all iconified windows on the current desktop and lets you bring them to the front.
it's written in bash and needs wmctrl. I guess there are still some bugs in it, especially if there are numbers in the window title.

#!/bin/bash

ICONFIED_STR="IsUnMapped"
RAISE="wmctrl -i -a"

echo '<openbox_pipe_menu>'

DESKTOP=$(wmctrl -d | grep -v '-' | sed 's/^(w*) .*$/1/')

for win in $(wmctrl -l  | grep " $DESKTOP " | sed 's/^(w*) .*$/1/')
do
    # check if the window is unmapped
    if [ $(xwininfo -id $win | grep "IsUnMapped" | wc -l) -gt 0 ]
    then
        title=$(xwininfo -id $win | grep "Window id" | sed 's/^.*"(.*)".*$/1/')
        
        echo -n "<item label="${title:0:40}"><action name="Execute"><execute>"
        echo -n "$RAISE $win"
        echo '</execute></action></item>'
    fi
done

Offline

#38 2005-08-16 19:25:31

nesta
Member
From: Albuquerque
Registered: 2003-11-21
Posts: 30
Website

Re: Openbox Resource Thread 2

What run dialogs are you guys using?

  ie. text program launchers -->

I had a great one (GTK based) but I lost it in a reiserFS corruption & can't remember what it's called -- it was real small (just a text input dialog) but had autocompletion, etc.


I know there's grun (but I can't seem to find it) fbrun and xfrun. I don't want to install xfrun b/c it's a) ugly and b) I'll have to d/l xFce packages & am trying to keep this system as clean as possible.

Thanks!

Brice

Offline

#39 2005-08-16 19:51:06

Lowe
Member
Registered: 2005-07-11
Posts: 89

Re: Openbox Resource Thread 2

I just use fbrun, haven't found anything else yet.

Offline

#40 2005-08-16 21:20:29

cmp
Member
Registered: 2005-01-03
Posts: 350

Re: Openbox Resource Thread 2

I use xfrun4 for the normal run dialog (but btw.: who is using a run dialog? - either I have the app in my menu, or I launch it from a terminal) and gnomesu for root stuff.

Offline

#41 2005-08-16 22:06:17

babyigor37
Member
From: Arizona
Registered: 2003-12-06
Posts: 58

Re: Openbox Resource Thread 2

In Openbox I use gmrun.  It's in unsupported of the AUR.  And cmp, run dialogs are handy in Openbox for people like myself who are too lazy to update menu.xml or rc.xml but still want to launch an app quickly.

Offline

#42 2005-08-17 20:39:53

nesta
Member
From: Albuquerque
Registered: 2003-11-21
Posts: 30
Website

Re: Openbox Resource Thread 2

babyigor37 wrote:

In Openbox I use gmrun.  It's in unsupported of the AUR.  And cmp, run dialogs are handy in Openbox for people like myself who are too lazy to update menu.xml or rc.xml but still want to launch an app quickly.

  Sweet! That was just what I was looking for. Thanks for the pointer,

Brice

  ps -> tied it to ALT-F2 by editing ~/.config/openbox/rc.xml ...

Offline

#43 2005-08-23 00:03:37

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: Openbox Resource Thread 2

You can find some themes made by me at http://nooms.de/?page=openbox. The page is in german language but I think everyone will understand screenshots wink

http://nooms.de/index.php?page=misc&subdir=/openbox is the directory listing of the dir where the themes and other openbox stuff (pipe menus, etc.) are stored.

Maybe someone finds any of these useful.

Offline

Board footer

Powered by FluxBB