aboutsummaryrefslogtreecommitdiffstats
path: root/hlwm-switch-to-window
diff options
context:
space:
mode:
Diffstat (limited to 'hlwm-switch-to-window')
-rwxr-xr-xhlwm-switch-to-window15
1 files changed, 15 insertions, 0 deletions
diff --git a/hlwm-switch-to-window b/hlwm-switch-to-window
index beb4bcc..6bb1d27 100755
--- a/hlwm-switch-to-window
+++ b/hlwm-switch-to-window
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright (C) 2022 Tom Willemse
+
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free Software
+# Foundation, either version 3 of the License, or (at your option) any later
+# version.
+
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+# details.
+
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see <https://www.gnu.org/licenses/>.
+
winid="0x$(printf "%x\n" $1)"
tag=$(herbstclient attr clients.$winid.tag)
herbstclient chain \