citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit f1d96506f1f06cb4b16a4c52b9fffcb6321f11e4
parent 697f86808eec4a96f6b5b4fa702588e3b7c2aafc
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 10 Jul 2021 09:22:56 -0700

wname

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Abin/wname | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/bin/wname b/bin/wname @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -eo pipefail + +if [ -z "$1" ] +then + printf "usage: wname <title>\n" + exit 1 +fi + +window_id=$(xprop -root _NET_ACTIVE_WINDOW | awk '{print $5}') +xdotool set_window --name "$1" "$window_id"