SEARCH

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

You are not logged in.

#1 2008-12-06 01:30:59

arpbook
The Mac Magician
From: montpellier,france
Registered: 2008-11-27
Posts: 177
Website

compositing direct in the code

hi,
a few month ago, we talk about eye-candy effect of xcompmgr & transset-df in openbox( http://crunchbang.org/archives/2008/03/ … and-conky/ ) and about a gentoo tuto which combine transset-df with xbindkeys in order to i/d transparency using mousewheel. but as you maybe see, the gentoo wiki is in panic hmm ( http://en.gentoo-wiki.com/wiki/TIP_Xorg … ranparency ). i saw that corenominal integrate composite in the obmenu , so i search for an easier way to use composite and .... it's better direct in the rc.xml:

  <mouse>
    <dragThreshold>8</dragThreshold>
    <!-- number of pixels the mouse must move before a drag begins -->
    <doubleClickTime>200</doubleClickTime>
    <!-- in milliseconds (1000 = 1 second) -->
    <screenEdgeWarpTime>400</screenEdgeWarpTime>
    <!-- Time before changing desktops when the pointer touches the edge of the
       screen while moving a window, in milliseconds (1000 = 1 second).
       Set this to 0 to disable warping -->
    <context name="Frame">
      <mousebind button="C-Up" action="Click">
        <action name="Execute">
          <execute>transset-df -p --inc 0.2</execute>
        </action>
      </mousebind>
      <mousebind button="C-Down" action="Click">
        <action name="Execute">
          <execute>transset-df -p --min 0.2 --dec 0.2</execute>
        </action>
      </mousebind>
      <mousebind button="A-Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>

i use C+b5/b4 on the window frame, but you can choose whatever shortcut you want.
so now, if you had composite enable into your autostart.sh:

# enable compositing
(sleep 2s && xcompmgr -cfF -r7 -o.65 -l-10 -t-8 -D7) &

just logout, and press [control]+wheel down on a window and see the result, you can adjust transparency on each window one by one :
8c3e3c4aec851fb9b5b52e1f04330tt.jpg
and if you set conkyrc like that:

---------
# Create own window instead of using desktop (required in nautilus)
own_window yes

# If own_window is yes, you may use type normal, desktop or override
own_window_type normal

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
--------

it works on conky too :
c293e64d1ea6eeab3850836639de5tt.jpg

some conkyrc to play with : http://crunchbanglinux.org/forums/topic … ky-config/
conkymusic for rhythmbox/audacious/mpd : http://crunchbanglinux.org/forums/post/1058/#p1058

bugs ? : the only issue i notice is when you kill/restart conky, you have to restart openbox too or you have half-window-display hmm
source : http://bbs.archlinux.org/viewtopic.php? … 61#p344861 thanks to him smile
hope you like smile

Last edited by arpbook (2008-12-06 01:35:52)


arpbook is dead - arpinux is born, and became a deviant.

Offline

Help fund CrunchBang, donate to the project!

#2 2008-12-06 01:38:13

rizzo
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,109

Re: compositing direct in the code

Nice work arpbook smile I'm not a big fan of this type of transparency when working but I can see some people will be very grateful for these tips smile

Offline

#3 2008-12-06 07:48:36

hexer
Member
From: Minsk, Belarus
Registered: 2008-11-30
Posts: 17
Website

Re: compositing direct in the code

Good work, arpbook.

thnx

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.

Debian Logo