From c8b1e38beac497f87690b6574433d03a1fadb875 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Feb 2025 16:39:17 +0100 Subject: clean up and change license MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/x-window-focus | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'examples/x-window-focus') diff --git a/examples/x-window-focus b/examples/x-window-focus index 930044a..08e058f 100644 --- a/examples/x-window-focus +++ b/examples/x-window-focus @@ -6,20 +6,21 @@ # only been tested on twm and xmonad. -# Copyright © 2014 Mattias Andrée (m@maandree.se) +# ISC License # -# 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. +# © 2014, 2025 Mattias Andrée # -# 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. +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # This requires that python3-xlib is installed. @@ -30,7 +31,7 @@ import threading import Xlib.display # TODO: cannot re-exec when this script is used -# TODO: does not wait with toggling of redshift is froozen +# TODO: does not wait with toggling if redshift is frozen def x_window_focus_thread_function(proc): @@ -124,4 +125,3 @@ def start_daemon_threads(proc, sock): thread = threading.Thread(target = x_window_focus_thread_function, args = (proc,)) thread.setDaemon(True) thread.start() - -- cgit v1.2.3-70-g09d2