Re: Compiz-Fusion Standalone on #!
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 . . .
CrunchBang Linux Forums » Tips, Tricks & Scripts » Compiz-Fusion Standalone on #!
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 . . .
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.
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
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 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
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/python2You 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.
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 ccp@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'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)
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)
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)
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'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...
hello world
i'm searching someone wich can forward me the two forgotten files
thank's a lot for that and for this howto ![]()
i can forward them to you if you are still around. Message me your email address
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
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!
Posts [ 51 to 68 of 68 ]
CrunchBang Linux Forums » Tips, Tricks & Scripts » Compiz-Fusion Standalone on #!
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.