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?

Basic Desktop Effects
(8 posts) (3 voices)-
Posted 13 years ago #
-
Open a terminal and type:
leafpad $HOME/.config/openbox/autostart.sh and uncomment (remove the # before) xcompmgr -c -r 10 &Posted 13 years ago # -
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!
Posted 13 years ago # -
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.
Posted 13 years ago # -
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.
Posted 13 years ago # -
hi...do U want something like that?
http://www.youtube.com/watch?v=iHYw8lXTe1Qwindows non active tranparent all time?
if Yes exist this scriptbut U need python
Posted 13 years ago # -
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.75class 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()=================================
Posted 13 years ago # -
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.
Posted 13 years ago #
Reply
You must log in to post.