aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-01 08:25:36 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-01 08:25:36 -0300
commitd89b3050af139cd390e36c4cbd48e830acec15a5 (patch)
tree9733904ef90bb83eab183a9a540c12d442a86502
parentfdd308495ed6763b2d4819b705813f6f27877ff1 (diff)
downloadxsession-d89b3050af139cd390e36c4cbd48e830acec15a5.tar.gz
xsession-d89b3050af139cd390e36c4cbd48e830acec15a5.tar.bz2
Compositor support (compton or xcompmgr)
-rw-r--r--Xresources.dot.link5
-rwxr-xr-xxsessionrc.dot.link14
2 files changed, 19 insertions, 0 deletions
diff --git a/Xresources.dot.link b/Xresources.dot.link
index d51175b..d7853e6 100644
--- a/Xresources.dot.link
+++ b/Xresources.dot.link
@@ -44,3 +44,8 @@ URxvt.color15: #ffffff
! Terminal font with powerline support
URxvt*font: xft:Terminus:pixelsize=14,xft:Inconsolata\ for\ Powerline:pixelsize=14
+
+! Seee https://wiki.archlinux.org/index.php/HiDPI#X_Resources
+Xft.dpi: 96
+Xft.hinting: 1
+Xft.hintstyle: hintmedium
diff --git a/xsessionrc.dot.link b/xsessionrc.dot.link
index beee2f6..2d54b25 100755
--- a/xsessionrc.dot.link
+++ b/xsessionrc.dot.link
@@ -39,6 +39,20 @@ elif [ "$BACKGROUND" != "unset" ]; then
xsetroot -solid '#1C1C1C'
fi
+# See https://wiki.archlinux.org/index.php/Compton
+if which compton > /dev/null 2>&1; then
+ if [ -e "$HOME/.config/compton.conf" ]; then
+ compton --config $HOME/.config/compton.conf -b
+ else
+ compton -b
+ fi
+fi
+
+# See https://wiki.archlinux.org/index.php/Xcompmgr
+if which xcompmgr > /dev/null 2>&1; then
+ xcompmgr -c &
+fi
+
# Set window manager
if [ -z "$WINDOW_MANAGER" ]; then
WINDOW_MANAGER='awesome'