summaryrefslogtreecommitdiff
path: root/x11/settitle
diff options
context:
space:
mode:
Diffstat (limited to 'x11/settitle')
-rwxr-xr-xx11/settitle7
1 files changed, 4 insertions, 3 deletions
diff --git a/x11/settitle b/x11/settitle
index df613ca..7cdd7d1 100755
--- a/x11/settitle
+++ b/x11/settitle
@@ -1,3 +1,4 @@
-#!/usr/bin/env bash
-xdotool getactivewindow set_window --class "$1"
-[ -z "$2" ] && echo -en "\e]0;$2\a"
+#!/bin/sh
+xdotool set_window --class "$2" $(xdotool search --pid $1) # command chaining doesnt work for some reason
+#xdotool getactivewindow set_window --class "$1"
+#[ -z "$2" ] && echo -n "\e]0;$2\a"