You are not logged in.
YEAH!!!
THIS SITE IS BACK ONLINE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
http://denstark.homelinux.org/~tim/openbox.php
:twisted: :shock: :!:
Well, glad to see that I have at least one fan :twisted:
Offline
Legout wrote:YEAH!!!
THIS SITE IS BACK ONLINE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
http://denstark.homelinux.org/~tim/openbox.php
:twisted: :shock: :!:
Well, glad to see that I have at least one fan :twisted:
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
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
denstark wrote:Legout wrote:YEAH!!!
THIS SITE IS BACK ONLINE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
http://denstark.homelinux.org/~tim/openbox.php
:twisted: :shock: :!:
Well, glad to see that I have at least one fan :twisted:
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 I am however interested in trying it. I'll start looking it up
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
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
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
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
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.
Offline
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.
Offline
denstark: Nice site, it's a lot easier to browse now. Good job.
Offline
denstark: Nice site, it's a lot easier to browse now. Good job.
Thanks, glad to hear that.
Offline
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
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
I just use fbrun, haven't found anything else yet.
Offline
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
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
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
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
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