hlfw.ca

hwwm

Download patch

ref: f30c58cbe10a4fc974c1afbfadfba93f9388c8be
parent: 3d168131ef0cd3dce64d5a055dcf0436d3112c8d
author: Halfwit <michaelmisch1985@gmail.com>
date: Fri Mar 17 16:46:59 PDT 2017

Update to use new names for scripts

--- a/Makefile
+++ b/Makefile
@@ -3,20 +3,21 @@
 
 PREFIX ?= /usr/local
 
-SRC = \
+OTHER = \
 	autotag \
 	fullscreen \
 	gitbar \
 	groups \
 	groupsbar \
-	inotifybar \
 	stack \
-	watcher \
 	wshuf
 
 install:
-	@mkdir -p ${DESTDIR}${PREFIX}/share/hwwm
-	@for i in ${SRC}; do \
+	@mkdir -p ${DESTDIR}${PREFIX}/bin/
+	@cp -f hwwm ${DESTDIR}${PREFIX}/bin/hwwm
+	@cp -f inotifybar ${DESTDIR}${PREFIX}/bin/inotifybar
+	@mkdir -p ${DESTDIR}${PREFIX}/share/hwwm/
+	@for i in ${OTHER}; do \
 		sed "s|/usr/local/share/hwwm/|${DESTDIR}${PREFIX}/share/hwwm/|g" $$i > ${DESTDIR}${PREFIX}/share/hwwm/$$i; \
 	done
 
--- a/README.md
+++ b/README.md
@@ -1,6 +1,15 @@
 # Halfwit's Window Manager
 Set of scripts around wmutils/wmgroup/watom that form my window manager
 
+## Startup
+
+xinitrc
+```sh
+# all things you start before
+inotifybar &
+exec hwwm
+```
+
 ## Installation
 Requires watom, wmgroup, wmutils
 PREFIX=myprefix make install
--- /dev/null
+++ b/hwwm
@@ -1,0 +1,21 @@
+#!/bin/sh
+DIR=/usr/local/share/hwwm
+
+wew | while read -r ev; do
+	wid=`echo "$ev" | sed 's/.*://'`
+    case "$ev" in
+		18*) $DIR/wshuf | xargs -n 5 wtp
+			wtf `lsw | tail -n1`
+			$DIR/groupsbar           ;;
+		19*) $DIR/wshuf | xargs -n 5 wtp
+			$DIR/autotag "$wid"
+			wtf "$wid"
+			$DIR/groupsbar           ;;
+		17*) wtf `lsw | tail -n1`
+			if watom `lsw -r` FS | grep "$wid"; then
+				xprop -root -remove FS
+				$DIR/wshuf | xargs -n 5 wtp
+			fi
+			$DIR/groupsbar           ;;
+	esac
+done
--- a/watcher
+++ /dev/null
@@ -1,21 +1,0 @@
-#!/bin/sh
-DIR=/usr/local/share/hwwm
-
-wew | while read -r ev; do
-	wid=`echo "$ev" | sed 's/.*://'`
-    case "$ev" in
-		18*) $DIR/wshuf | xargs -n 5 wtp
-			wtf `lsw | tail -n1`
-			$DIR/groupsbar           ;;
-		19*) $DIR/wshuf | xargs -n 5 wtp
-			$DIR/autotag "$wid"
-			wtf "$wid"
-			$DIR/groupsbar           ;;
-		17*) wtf `lsw | tail -n1`
-			if watom `lsw -r` FS | grep "$wid"; then
-				xprop -root -remove FS
-				$DIR/wshuf | xargs -n 5 wtp
-			fi
-			$DIR/groupsbar           ;;
-	esac
-done