]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - Xdefaults.in
enable real transparency in urxvt with compton
[config/dotfiles.git] / Xdefaults.in
index 9ecdaaed7e4f925b2f45fe0c3c2f6afa4cf1c19e..f2938b4ad66ecf9200b942888a9c76a06a47b9d4 100644 (file)
@@ -5,7 +5,7 @@
 ! "Term" is an alias for all supported terminal emulators; it is automatically
 ! replaced by setup.sh.
 
-! Copyright (C) 2011-2012  Simon Ruderich
+! Copyright (C) 2011-2014  Simon Ruderich
 !
 ! This file is free software: you can redistribute it and/or modify
 ! it under the terms of the GNU General Public License as published by
@@ -26,6 +26,14 @@ Term*foreground:  #cccccc
 Term*background:  #000000
 Term*cursorColor: #ffff66
 
+! Special case for urxvt to get transparent background. This requires a
+! compositing manager which supports transparency like compton. Thanks to eto
+! and adaedra in #herblstuftwm on Freenode (2014-05-04 15:50 ff) for their
+! awesome help regarding transparency.
+Rxvt*background: [90]#000000
+! Necessary for transparency, see man page.
+Rxvt*depth: 32
+
 ! Disable the scrollback buffer. I use screen/tmux so it is not necessary.
 XTerm*saveLines: 0
 Rxvt*saveLines:  0
@@ -41,9 +49,9 @@ XTerm.termName: xterm-256color
 ! #stumpwm on Freenode (2009-05-18 22:05).
 !XTerm*allowSendEvents: true
 
-! Enable transparency.
-Rxvt*transparent: true
-Rxvt*shading:     10
+! Enable pseudo transparency. Only used if compton is not available.
+!NO_COMPTON Rxvt*transparent: true
+!NO_COMPTON Rxvt*shading:     10
 
 ! Do not use any perl extension scripts.
 Rxvt*perl-ext-common: