You are not logged in.
thanks for your reply.
well i guess i've played with most of them then. I think for the time being i'm going to settle with Xfce4 panel. I'm surprised how light it is . . .
all your Base are belong to us
Offline
PS: To shutdown / reboot, I use a modified oblogout script. If there's any interest I will post it here as well.
Yes, please post this!!! Have been trying to add session management to get my xfce panel shutdown/logout buttons to work but failing miserably.
all your Base are belong to us
Offline
CFS-Logout (I save it in ~/bin):
#!/usr/bin/env python2
import pygtk
pygtk.require('2.0')
import gtk
import os
class DoTheLogOut:
# Cancel/exit
def delete_event(self, widget, event, data=None):
gtk.main_quit()
return False
# Suspend
def suspend(self, widget):
os.system("pm-suspend")
# Hibernate
def hibernate(self, widget):
os.system("pm-hibernate")
# Reboot
def reboot(self, widget):
os.system("dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart")
# Shutdown
def shutdown(self, widget):
os.system("dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop")
def __init__(self):
# Create a new window
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.set_title("Afsluiten? Kies een optie:")
self.window.set_resizable(False)
self.window.set_position(1)
self.window.connect("delete_event", self.delete_event)
self.window.set_border_width(20)
# Create a box to pack widgets into
self.box1 = gtk.HBox(False, 0)
self.window.add(self.box1)
# Create cancel button
self.button1 = gtk.Button("_Annuleren")
self.button1.set_border_width(10)
self.button1.connect("clicked", self.delete_event, "Changed me mind :)")
self.box1.pack_start(self.button1, True, True, 0)
self.button1.show()
# Create suspend button
self.button2 = gtk.Button("_Sluimerstand")
self.button2.set_border_width(10)
self.button2.connect("clicked", self.suspend)
self.button2.connect("clicked", self.delete_event, "Force removal :(")
self.box1.pack_start(self.button2, True, True, 0)
self.button2.show()
# Create hibernate button
self.button3 = gtk.Button("S_laapstand")
self.button3.set_border_width(10)
self.button3.connect("clicked", self.hibernate)
self.box1.pack_start(self.button3, True, True, 0)
self.button3.show()
# Create reboot button
self.button4 = gtk.Button("_Opnieuw opstarten")
self.button4.set_border_width(10)
self.button4.connect("clicked", self.reboot)
self.box1.pack_start(self.button4, True, True, 0)
self.button4.show()
# Create shutdown button
self.button5 = gtk.Button("A_fsluiten")
self.button5.set_border_width(10)
self.button5.connect("clicked", self.shutdown)
self.box1.pack_start(self.button5, True, True, 0)
self.button5.show()
self.box1.show()
self.window.show()
def main():
gtk.main()
if __name__ == "__main__":
gogogo = DoTheLogOut()
main()It requires pm-utils for suspending etc. The rest should work AFAIK. Lemme know if you need help
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github || Deviantart
Offline
interestingly i can't get your script to run.
/usr/bin/env: python2: No such file or directoryI can get darthwound's to run tho' - script is almost identical. It creates a window with selection buttons so i guess i should persevere with his script . . . ?
The nuts and bolts behind these 2 scripts are the same tho' using dbus/consolekit to perform the actions but only the logout button does anything - it kills compiz leaving me logged in without decorations. the shutdown and reboot buttons do nothing.
Oh! - I should add i am using a wheezy base netinstall with your compiz standalone loaded on top ( via a modified omns build script) and slim login manager.
I guess i need to do some homework on slim, dbus and consolekit.
all your Base are belong to us
Offline
all right - i believe i am now starting my compiz session 'correctly' via consolekit rather than my horrible hack
.
the buttons still don't work 
the stop command in the script is something like this:
dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stopif i run the above as sudo in terminal the system shuts down.
if as normal user, i get following error when run from terminal
Error org.freedesktop.ConsoleKit.Manager.NotPrivileged: Not AuthorizedAny ideas on a solution to this? - i am a member of power, powerdev.
Have spent some time searching for an answer - thought the issue was incorrectly implemented consolekit on startup
all your Base are belong to us
Offline
interestingly i can't get your script to run.
/usr/bin/env: python2: No such file or directoryI can get darthwound's to run tho' - script is almost identical. It creates a window with selection buttons so i guess i should persevere with his script . . . ?
Run this to correct the python error
sudo ln -s /usr/bin/python2.6 /usr/bin/python2VSIDO
If you build it, they will come...
Words That Build Or Destroy
Offline
You are aware of the fact, that /usr/bin/env python2 looks up a certain environment variable? Set the correct variable and the script will run.
I'm so meta, even this acronym
Offline
How do you start your session Gurtid? Using SLiM + .xinitrc? If so, use this line in .xinitrc to launch Compiz with the correct permissions to use shutdown/reboot:
exec ck-launch-session dbus-launch compiz ccpIf you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github || Deviantart
Offline
@vastone and Awebb. Thank you - that's solved that issue.
@Unia. Yes - essentially that's wot i'm doing. Do you use this method?
I think part of my problem is that ck doesn't register an active session . . . ?
gurtid@deb64compiz:~$ ck-list-sessions
Session1:
unix-user = '1000'
realname = 'gurtid'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2011-10-14T00:33:51.761454Z'
login-session-id = '4294967295'all your Base are belong to us
Offline
ok . . . so the 'fix' is to dump SLiM and install LightDM.
Now able to shutdown/reboot via Unias script 
edit: it's a known bug affecting SLiM and XDM.
Last edited by gurtid (2011-10-14 12:55:32)
all your Base are belong to us
Offline
omns' account seems to have been suspended. Is there any other way of getting the compiz-alone and menu debs?
Last edited by Floi (2012-01-15 21:54:16)
http://twitch.tv/jonfen - me streaming some noob starcraft: broodwar from #!
Offline
pm me your email address and i'll forward them to you if i can find them . . . i will only have 64bit (where relevant) tho'
wow -freaky we registered on the same day 
Last edited by gurtid (2012-01-16 07:26:53)
all your Base are belong to us
Offline
I'm still have those as well. I'll look for a new place to host the files and I'll edit the first post!
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github || Deviantart
Offline
I'm still have those as well. I'll look for a new place to host the files and I'll edit the first post!
I can host from my Dropbox if you want...
VSIDO
If you build it, they will come...
Words That Build Or Destroy
Offline
hello world
i'm searching someone wich can forward me the two forgotten files
thank's a lot for that and for this howto 
Offline
i can forward them to you if you are still around. Message me your email address
all your Base are belong to us
Offline
I still got em as well, albeit on my external harddisk. Once I got some time, I'll put em up on dropbox and edit my first post
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github || Deviantart
Offline
I found compizboxmenu in this repo here...
##NoteSalexp##
deb http://notesalexp.net/debian/sid/ sid main
And heres the key....
wget -O - http://notesalexp.net/debian/alexp_key.asc | apt-key add -
Hope this may help someone it did me, have a great #!'ers and debian junkies!
Offline
Hey Unia, great post!
Im looking forward for the 2 missing debs too...
Thx everyone in advance, im sure someone in this great community will post the files soon.
Offline
Hey Unia, great post!
Im looking forward for the 2 missing debs too...Thx everyone in advance, im sure someone in this great community will post the files soon.
Oops, forgot about that 
I'll upload them today after my last exam, whoohooooo. If I forget, drop me an email this time! I won't have any excuses not to upload them 
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github || Deviantart
Offline
Oke... first off all I gotta admit that I lost the .deb files. I don't know what happened - perhaps they got swept away in a massive HDD clean attempt of mine.
I do have to original tar.gz file that I used to create the .debs so that should work too. Just unpack it and place the scripts in the desired location and give them the proper rights and make them executable. I hosted that file here:
http://dl.dropbox.com/u/43004081/compiz … 1.0.tar.gz
The locations:
compiz-alone.desktop -> /etc/X11/sessions/compiz-alone.desktop
autostart.sh -> /etc/xdg/compiz/autostart.sh (and of course in ~/.config/compiz/autostart.sh)
xdg-autostart -> /usr/bin/xdg-autostart
compiz-alone-session -> /usr/bin/compiz-alone-session
compiz-alone.desktop -> /usr/share/xsessions/compiz-alone.desktop (yes, again)That's it for the session files. I lost all the files for the root menu, but in time I have come around to like another project that's essentially the same: mygtkmenu. It's a well known project (more well known than compiz-boxmenu) and you can find info on Google about this, but I will try to compile a short guide on it as well.
Should I update the first post with this information?
Last edited by Unia (2012-06-01 20:28:13)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github || Deviantart
Offline
So I've been playing around with getting compiz standalone with boxmenu going for a bit. followed the guide as best I could and the follow up suggestions.
got it so I almost everything loaded like in openbox (tint2, conky, nitrogen, etc.) but when I load I don't have a mouse (touchpad) and no keyboard inputs do anything. can't get boxmenu to come up.
Offline
Can I see your autostart.sh? I'm thinking you might have forgotten a & somewhere.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github || Deviantart
Offline
thank you for the reply. I'll post when I get back from work and check for a missing &. it is possible as I was changing it around to get everything started up.
Offline
so I added back in a missing &
now I get a mouse, a tint2 bar, and conky. unfortunately I get a black background next to them. can't get any compiz functions running.
here is my autostart file:
# This shell script is run before Compiz launches.
# Environment variables set here are passed to the Compiz session.
# Set a background color
#BG=""
#if which hsetroot >/dev/null 2>&1; then
# BG=hsetroot
#else
# if which esetroot >/dev/null 2>&1; then
# BG=esetroot
# else
# if which xsetroot >/dev/null 2>&1; then
# BG=xsetroot
# fi
# fi
#fi
#test -z $BG || $BG -solid "#202020"
# D-bus
if which dbus-launch >/dev/null 2>&1 && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
# Run XDG autostart things. By default don't run anything desktop-specific
# See xdg-autostart --help more info
DESKTOP_ENV="COMPIZ"
if which /usr/bin/xdg-autostart >/dev/null 2>&1; then
/usr/bin/xdg-autostart $DESKTOP_ENV
fi
# Start Networkmanager Applet
nm-applet &
# Set Background
nitrogen --restore &
# Start Conky
conky -q &
# start tint2
tint2 &
## Volume control for systray
(sleep 2s && pnmixer) &
xfce4-volumed &
## Enable power management
xfce4-power-manager &
## Start Thunar Daemon
thunar --daemon &
## Start xscreensaver
xscreensaver -no-splash &
## Start Clipboard manager
(sleep 3s && clipit) &
## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 250 25 &
## Turn on/off system beep
xset b off &
# Other stuff
system-config-printer-applet &
synclient HorizTwoFingerScroll=0 &
synclient FingerLow=10 &
synclient FingerHigh=20 &
xcalib /home/manofjello/documents/Color_LCD.icc &Last edited by ManofJELLO (2013-01-30 04:26:22)
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.