citadel

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

wname (211B)


      1 #!/usr/bin/env bash
      2 
      3 set -eo pipefail
      4 
      5 if [ -z "$1" ]
      6 then
      7 	printf "usage: wname <title>\n"
      8 	exit 1
      9 fi
     10 
     11 window_id=$(xprop -root _NET_ACTIVE_WINDOW | awk '{print $5}')
     12 xdotool set_window --name "$1" "$window_id"