From ddb4c2dceafa443ee9e93dff7b26fe8bd3a0a42b Mon Sep 17 00:00:00 2001 From: Arne Schauf Date: Mon, 1 Feb 2016 22:05:00 +0100 Subject: [PATCH] use wallpaper widget --- qtile_config.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/qtile_config.py b/qtile_config.py index 9b33533..7f82c80 100644 --- a/qtile_config.py +++ b/qtile_config.py @@ -25,13 +25,13 @@ # SOFTWARE. import os -import subprocess from libqtile.config import Key, Screen, Group, Drag, Click from libqtile.command import lazy -from libqtile import layout, bar, widget, hook +from libqtile import layout, bar, widget mod = "mod4" +home = os.path.expanduser('~') keys = [ # Switch between windows in current stack pane @@ -147,6 +147,7 @@ screens = [ widget.DF(), widget.Sep(), widget.Battery(), + widget.Wallpaper(directory=home + '/Pictures/wallpapers/'), ], 15, ), @@ -180,9 +181,3 @@ auto_fullscreen = True # We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in # java that happens to be on java's whitelist. wmname = "LG3D" - - -@hook.subscribe.startup_once -def autostart(): - home = os.path.expanduser('~') - subprocess.call(['feh', '--bg-scale', home + '/Pictures/nywallpaper.jpg'])