dwm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 236c6a7f2f9a480cfd7bb39a00dca40984830b01
parent d65404e8e54e9e08d38ada25556d3926daace9b0
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Fri, 24 Jan 2020 06:20:24 -0500

dwmc added

Diffstat:
M.gitignore | 2--
Adwmc | 40++++++++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,4 +1,2 @@ *.orig *.rej -dwmc -dwmc diff --git a/dwmc b/dwmc @@ -0,0 +1,40 @@ +#!/usr/bin/env sh + +signal() { + xsetroot -name "fsignal:$*" +} + +case $# in +1) + case $1 in + setlayout | view | viewall | togglebar | togglefloating | zoom | killclient | quit) + signal $1 + ;; + *) + echo "Unknown command or missing one argument." + exit 1 + ;; + esac + ;; +2) + case $1 in + view) + signal $1 ui $2 + ;; + viewex | toggleviewex | tagex | toggletagex | setlayoutex | focusstack | incnmaster | focusmon | tagmon) + signal $1 i $2 + ;; + setmfact) + signal $1 f $2 + ;; + *) + echo "Unknown command or one too many arguments." + exit 1 + ;; + esac + ;; +*) + echo "Too many arguments." + exit 1 + ;; +esac