From a3b9018f0a17f8473941a9d0f8323161f93903c3 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 6 Aug 2023 22:54:27 +0200 Subject: Removed script "termy" --- termy | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 termy (limited to 'termy') diff --git a/termy b/termy deleted file mode 100644 index c207800..0000000 --- a/termy +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# if app is not open then launch it -- remove this if you don't want your -# shortcut to launch the application if it hasn't been launched yet -if [ -z "$(xdotool search --class konsole)" ]; then - konsole -fi - -# get current focused window and visible konsole window -CLASS="konsole" -ACTIVE_WINDOW="$(xdotool getactivewindow)" -APP_WINDOW="$(xdotool search --onlyvisible --class $CLASS)" - -# if focused, minimize and hide the konsole, otherwise bring konsole to current desktop and open -if [ "$ACTIVE_WINDOW" = "$APP_WINDOW" ]; then - xdotool getactivewindow windowminimize -else - wmctrl -xR "$CLASS" -fi - -- cgit v1.2.3