diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-08-06 22:54:27 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-08-06 22:54:27 +0200 |
| commit | a3b9018f0a17f8473941a9d0f8323161f93903c3 (patch) | |
| tree | 089086ce122ef0e351065087d92b99893eda3852 | |
| parent | adcbeb8beac922537673e8a7c4f0553b8f2b9997 (diff) | |
| download | dotfiles-a3b9018f0a17f8473941a9d0f8323161f93903c3.tar.gz dotfiles-a3b9018f0a17f8473941a9d0f8323161f93903c3.zip | |
Removed script "termy"
| -rw-r--r-- | termy | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -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 - |
