Topic: transparency shortcuts + start/stop xcompmgr script

here's some transparency shortcuts.
(+a couple others for starting stopping the start stop xcompmgr script i got from.... *goes looking for link*)

    <!-- Digit's Keybindings for window transparency -->
    <keybind key="W-1">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.1</name>
        </startupnotify>
        <command>transset 0.1</command>
      </action>
    </keybind>
    <keybind key="W-2">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.2</name>
        </startupnotify>
        <command>transset 0.2</command>
      </action>
    </keybind>
    <keybind key="W-3">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.3</name>
        </startupnotify>
        <command>transset 0.3</command>
      </action>
    </keybind>
    <keybind key="W-4">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.4</name>
        </startupnotify>
        <command>transset 0.4</command>
      </action>
    </keybind>
    <keybind key="W-5">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.5</name>
        </startupnotify>
        <command>transset 0.5</command>
      </action>
    </keybind>
    <keybind key="W-6">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.6</name>
        </startupnotify>
        <command>transset 0.6</command>
      </action>
    </keybind>
    <keybind key="W-7">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.7</name>
        </startupnotify>
        <command>transset 0.7</command>
      </action>
    </keybind>
    <keybind key="W-8">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.8</name>
        </startupnotify>
        <command>transset 0.8</command>
      </action>
    </keybind>
    <keybind key="W-9">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 0.9</name>
        </startupnotify>
        <command>transset 0.9</command>
      </action>
    </keybind>
    <keybind key="W-0">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>transset 1</name>
        </startupnotify>
        <command>transset 1</command>
      </action>
    </keybind>
    <!-- Digit's Keybindings for running applications -->
    <keybind key="W-s">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>xcomp</name>
        </startupnotify>
        <command>COMP -s</command>
      </action>
    </keybind>
    <keybind key="S-W-s">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>xcomp</name>
        </startupnotify>
        <command>COMP</command>
      </action>
    </keybind>

there, that should make it much more useful!
'twas clumsy clodhopping before.  smile

Last edited by Digit (2009-10-30 17:16:51)

educate yourself so you may educate others.DeNoob&UnBloat PCs!
the only free webhosting i use.
say "NO!" to a chemical lobotomy in your food
flattr me, thnx

Re: transparency shortcuts + start/stop xcompmgr script

here's that link to the script. http://wiki.archlinux.org/index.php/Xcompmgr
i put it in a new post to keep the original post a bit cleaner, so i can also include here my modified version (uses a more conservative setup for xcompmgr (no shadows etc))

#!/bin/bash
#
# Start a composition manager.
# (xcompmgr in this case)

function comphelp () {
  echo "Composition Manager:"
  echo "   (re)start: COMP"
  echo "   stop:      COMP -s"
  echo "   query:     COMP -q"
  echo "              returns 1 if composition manager is running, else 0"
  exit
}

function checkcomp () {
  ( ps -e | grep xcompmgr &>/dev/null ) && exit 1
  exit 0
}

function stopcomp () {
  ( ps -e | grep xcompmgr &>/dev/null ) && killall xcompmgr
}

function startcomp () {
  stopcomp
# Example settings only. Replace with your own.
  xcompmgr -n -I-.015 -O-.03 -D9 -t-0 -l-0 &
  exit
}

case "$1x" in
    "x") startcomp;;
  "-qx") checkcomp;;
  "-sx") stopcomp; exit;;
      *) comphelp;;
esac


PS  (cos i dare not triple post)


PS.
my autostart script for openbox is now a bit of a mess.  lol

# Enable Eyecandy - off by default
# see "/usr/bin/crunchbang/xcompmgr-crunchbang" for more info
#xcompmgr-crunchbang --startstop &

# Enable Eyecandy - Digit's tweak version - dont run at same time as above, myte break.
xcompmgr -n -I-.015 -O-.03 -D9 -t-0 -l-0 &
# see ~/bin/COMP (&/or ~/bin/xcomp) for more details about starting and stopping xcompmgr

putting keyboard shortcuts to open my config files in an editor was the smartest move i ever made with an operating system.  right up there with renouncing total proprietary enslavement and moving to linux.  big_smile
here's a selection of my edit configs shortcuts too... since i've already strayed to "off topic". big_smile

    <keybind key="W-A-c">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>conkywonky</name>
        </startupnotify>
        <command>conkywonky</command>
      </action>
    </keybind>
    <keybind key="C-W-A-c">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Edit .conkyrc</name>
        </startupnotify>
        <command>gedit ~/.conkyrc</command>
      </action>
    </keybind>
    </keybind>
    <keybind key="W-A-o">
      <action name="Restart"/>
    </keybind>
    <keybind key="C-W-A-o">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Edit rc.xml</name>
        </startupnotify>
        <command>gedit ~/.config/openbox/rc.xml</command>
      </action>
    </keybind>
    <keybind key="C-W-A-a">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Edit autostart.sh</name>
        </startupnotify>
        <command>gedit ~/.config/openbox/autostart.sh</command>
      </action>
    </keybind>
    <keybind key="C-W-A-m">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Edit menu.xml</name>
        </startupnotify>
        <command>gedit ~/.config/openbox/menu.xml</command>
      </action>
    </keybind>
    <keybind key="W-A-b">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>change background</name>
        </startupnotify>
        <command>nitrogen /home/g/images/wallpapers/</command>
      </action>
    </keybind>
    <keybind key="W-A-n">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>tint2 wonky</name>
        </startupnotify>
        <command>tint2wonky</command>
      </action>
    </keybind>
    <keybind key="C-A-W-n">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>tint2 pannel config</name>
        </startupnotify>
        <command>gedit /home/g/.config/tint2/tint2rc</command>
      </action>
    </keybind>
    <keybind key="S-C-A-W-t">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Terminal config</name>
        </startupnotify>
        <command>gedit /home/g/.config/terminator/config</command>
      </action>
    </keybind>
    <keybind key="W-A-t">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>htop</name>
        </startupnotify>
        <command>terminator --command="htop"</command>
      </action>
    </keybind>

Last edited by Digit (2009-10-30 17:30:24)

educate yourself so you may educate others.DeNoob&UnBloat PCs!
the only free webhosting i use.
say "NO!" to a chemical lobotomy in your food
flattr me, thnx