config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 5cee99d917e55c961331df8b4b5b13482f391add
parent 8c2518af47838af404feda4785616aebd78c3323
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sun, 14 Feb 2021 21:55:13 -0800

Cleanup and add copywrite notice to the wid script

Diffstat:
Mmodules/scripts/.local/bin/wid | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/scripts/.local/bin/wid b/modules/scripts/.local/bin/wid @@ -1,4 +1,7 @@ -#!/usr/bin/env dash -#! wid -- get current window id +#!/bin/sh +# Copywrite 2021 Jacob R. Edwards +# License: GPLv3 +# +# wid -- get current window id -xprop -root | awk -F"# " 'index($0, "_NET_ACTIVE_WINDOW(WINDOW)") > 0 { print $2; exit }' +xprop -root | fgrep '_NET_ACTIVE_WINDOW(WINDOW)' | cut -d' ' -f5