SliTaz SliTaz Forum

You are not logged in.

#1 2011-08-25 17:26:43

Guest
Guest

Basic Desktop Effects

Hi there I've noticed there are some basic Desktop effects in SliTaz 3.0 Cooking. Like shadows and fading which I love and also opacity for windows. How can I make it so these effects are default? Already set when I login? Also to make windows transparent I have to choose 'set opacity (click)' then click a window, I have to repeat this for every window. Is there anyway I can do that will make everything transparent at once?

#2 2011-08-25 18:37:45

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Basic Desktop Effects

Open a terminal and type:

leafpad $HOME/.config/openbox/autostart.sh and uncomment (remove the # before) xcompmgr -c -r 10 &

Offline

#3 2011-08-25 19:11:42

Guest
Guest

Re: Basic Desktop Effects

I've already took this step but it still leaves me having to click on a window at startup and then repeating the steps to make each and every window transparent. I was looking for a way to make all the windows I open permananetly transparent.

Thanks so far!

#4 2011-08-25 21:37:51

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Basic Desktop Effects

From a quick look, there isn't really a command that does it automatically, but you could look through obconf to see if openbox comes with an option to render windows with an set opacity level.

Offline

#5 2011-08-25 23:40:06

Guest
Guest

Re: Basic Desktop Effects

Marking this as resolved as it doesn't look like there is an easy way to do it. I'll have a look through obconf sometime it's not a deal breaker so not too fussed.

#6 2011-08-26 15:38:58

Raphael
Member
Registered: 2011-06-12
Posts: 109

Re: Basic Desktop Effects

hi...do U want something like that?

http://www.youtube.com/watch?v=iHYw8lXTe1Q

windows non active tranparent all time?

if Yes exist this script

but U need python

Offline

#7 2011-08-26 15:41:16

Raphael
Member
Registered: 2011-06-12
Posts: 109

Re: Basic Desktop Effects

i see in attachement python script no fonction so...

==========================================

#!/usr/bin/python

# -*- coding: utf-8 -*-

##

#   script that uses transset-df to allow opacity to follow the focused window.

#   The focused window get opacity 1.0 while all others have opacity set by 'OPACITY'

#

#   by ADcomp <david.madbox@gmail.com>  [ http://www.ad-comp.be/ ]

#

#   This program is distributed under the terms of the GNU General Public License

#   For more info see http://www.gnu.org/licenses/gpl.txt

##

import os

## from python-gtk2

import gtk

## from python-gnome2-desktop

import wnck

## transset -i <xid> <opacity>

CMD = 'transset-df -i'

## opacity when not active

OPACITY = 0.75

class Transset():

    def __init__(self):

        self.screen = wnck.screen_get_default()

        self.screen.force_update()

        self.update()

        self.screen.connect("active_window_changed", self.active_window_changed)

    def update(self):

        win_list = self.screen.get_windows()

        active_ws = self.screen.get_active_workspace()

        active_win = self.screen.get_active_window()

        for window in win_list:

            ## don't check window if skip tasklist

            if not window.is_skip_tasklist():

                ## only window open on active workspace

                if window.get_workspace() == active_ws:

                    if window == active_win:

                        ## remove transparency

                        cmd = "%s %s 1" % ( CMD, window.get_xid() )

                    else:

                        ## set transparency

                        cmd = "%s %s %s" % ( CMD, window.get_xid(), OPACITY )

                    os.system(cmd)

    def active_window_changed(self, screen, window):

        self.update()

    def doquit(self, widget=None, data=None):

        gtk.main_quit()

    def run(self):

        gtk.main()

transset = Transset()

transset.run()

=================================

Offline

#8 2011-08-26 18:33:06

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Basic Desktop Effects

The code says it all. It needs python-gtk and python-gnome2 to work. The last package also means it needs GNOME installed and as your default enviroment to work, meaning this script won't work well for SliTaz or OpenBox.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]