#!/usr/bin/env bash
xdotool getactivewindow set_window --class "$1"
[ -z "$2" ] && echo -en "\e]0;$2\a"