dmenium

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/dmenium
Log | Files | Refs | LICENSE

commit 72030a1e10eb45731dd82f77a124c46fbb250840
parent 5a77b6f6cee35d1e0e6af5601c3e37dde3df8c0d
Author: Ed van Bruggen <edvb54@gmail.com>
Date:   Thu, 14 May 2015 19:41:30 -0700

Add dmenu-win.sh file for switching open windows

Diffstat:
dmenu-win.sh | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/dmenu-win.sh b/dmenu-win.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +# Use dmenu to focus on an open window + +win="$(wmctrl -l | dmenu -l 10 "$@" | cut -d ' ' -f 1)" +[ "$win" ] && wmctrl -ia "$win" &