SEARCH

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

You are not logged in.

#51 2011-10-11 22:12:00

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 379

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 . . .


all your Base are belong to us

Offline

Be excellent to each other!

#52 2011-10-12 22:17:28

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 379

Re: Compiz-Fusion Standalone on #!


all your Base are belong to us

Offline

#53 2011-10-13 08:05:41

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Compiz-Fusion Standalone on #!

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

Offline

#54 2011-10-13 10:20:28

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 379

Re: Compiz-Fusion Standalone on #!

interestingly i can't get your script to run.

/usr/bin/env: python2: No such file or directory

I 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

#55 2011-10-13 12:57:45

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 379

Re: Compiz-Fusion Standalone on #!

all right - i believe i am now starting my compiz session 'correctly' via consolekit rather than my horrible hack big_smile.

the buttons still don't work sad

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.Stop

if 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 Authorized

Any 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

#56 2011-10-13 14:30:51

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Compiz-Fusion Standalone on #!

/usr/bin/env: python2: No such file or directory

Offline

#57 2011-10-13 14:47:44

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Compiz-Fusion Standalone on #!


I'm so meta, even this acronym

Offline

#58 2011-10-13 15:59:26

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Compiz-Fusion Standalone on #!

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

Offline

#59 2011-10-14 03:09:30

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 379

Re: Compiz-Fusion Standalone on #!

@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

#60 2011-10-14 12:54:36

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 379

Re: Compiz-Fusion Standalone on #!

ok . . . so the 'fix' is to dump SLiM and install LightDM.

Now able to shutdown/reboot via Unias script smile

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

#61 2012-01-15 21:42:44

Floi
#! Member
Registered: 2011-04-07
Posts: 63

Re: Compiz-Fusion Standalone on #!

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)

Offline

#62 2012-01-16 07:22:58

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 379

Re: Compiz-Fusion Standalone on #!

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 neutral

Last edited by gurtid (2012-01-16 07:26:53)


all your Base are belong to us

Offline

#63 2012-01-17 21:48:58

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Compiz-Fusion Standalone on #!

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!

Offline

#64 2012-01-17 21:52:26

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Compiz-Fusion Standalone on #!

Offline

#65 2012-03-14 18:40:47

ekoba
New Member
Registered: 2012-03-14
Posts: 1

Re: Compiz-Fusion Standalone on #!

hello world
i'm searching someone wich can forward me the two forgotten files

thank's a lot for that and for this howto smile

Offline

#66 2012-03-20 10:55:46

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 379

Re: Compiz-Fusion Standalone on #!

i can forward them to you if you are still around. Message me your  email address


all your Base are belong to us

Offline

#67 2012-03-20 11:57:33

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Compiz-Fusion Standalone on #!

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

Offline

#68 2012-04-15 05:05:09

mrbox23
New Member
Registered: 2010-01-29
Posts: 3

Re: Compiz-Fusion Standalone on #!

Offline

#69 2012-05-31 01:24:52

masmarius
New Member
Registered: 2009-08-13
Posts: 4

Re: Compiz-Fusion Standalone on #!

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

#70 2012-05-31 09:21:01

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Compiz-Fusion Standalone on #!

Offline

#71 2012-06-01 11:43:07

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Compiz-Fusion Standalone on #!

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)

Last edited by Unia (2012-06-01 20:28:13)

Offline

#72 2013-01-29 05:37:35

ManofJELLO
Member
Registered: 2013-01-05
Posts: 47

Re: Compiz-Fusion Standalone on #!

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

#73 2013-01-29 10:49:03

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Compiz-Fusion Standalone on #!

Offline

#74 2013-01-29 15:24:17

ManofJELLO
Member
Registered: 2013-01-05
Posts: 47

Re: Compiz-Fusion Standalone on #!

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

Help fund CrunchBang, donate to the project!

#75 2013-01-30 04:21:00

ManofJELLO
Member
Registered: 2013-01-05
Posts: 47

Re: Compiz-Fusion Standalone on #!

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

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.
Server: bleh

Debian Logo