File: SetTranslucency

package info (click to toggle)
fvwm-crystal 3.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 21,700 kB
  • ctags: 1,494
  • sloc: sh: 3,265; cs: 1,335; python: 875; makefile: 214
file content (22 lines) | stat: -rwxr-xr-x 581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# E17-Bling helper script for FVWM-Crystal
#
# Version:	1.0.0
# License: 	GPL 3+
#
# Author:	Dominique Michel <dominique_libre@users.sourceforge.net>	
#
# Created:	15/05/2013
# Changed:	15/05/2013
#
# Description:	This function will change the windows translucency
# 	with focus change. Original idea: Gronono on the gentoo forum
#	http://forums.gentoo.org/viewtopic-t-606068.html?sid=5dea73ee0b5eeda5a75999520455e577
# TODO: preferences for the translucency values.

if [ "$1" != "$2" ]; then
        transset -i $1 -m 0.5 -x 0.5
        transset -i $2 -m 1   -x 1
fi