hlfw.ca

hwwm

Download patch

ref: 91f9fda4d5e3edf7665a71d4a3cc49551974caf9
parent: 325ecff1540583d7d6905d20dcec3b045966e7a8
author: Halfwit <michaelmisch1985@gmail.com>
date: Mon Aug 13 13:29:21 PDT 2018

Move window manager specific stuff from sxrc

Signed-off-by: Halfwit <michaelmisch1985@gmail.com>

--- a/hwwm
+++ b/hwwm
@@ -1,5 +1,19 @@
 #!/bin/sh
 DIR=/usr/local/share/hwwm
+BACKGROUND="$XDG_CONFIG_HOME"/x11/background
+
+# Update the database
+xrdb -merge "$XDG_CONFIG_HOME"/x11/Xresources
+
+# Set background image
+hsetroot -center "$BACKGROUND" -tint "$(xrdb -query | awk '/desktop/{print $NF}')"
+
+# Key watcher
+sxhkd -m -1 &
+
+# Statusbar
+inotifybar &
+
 
 # Colors
 highlight="$(xrdb -query | awk '/desktop/{print $NF}' | sed 's/#//')"