From 1f467e1b4f111cd90c7510d63a7b6818c09bc4ea Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Sat, 9 May 2020 19:14:10 -0500 Subject: [PATCH] Delete ddspawn --- .local/bin/i3cmds/ddspawn | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 .local/bin/i3cmds/ddspawn diff --git a/.local/bin/i3cmds/ddspawn b/.local/bin/i3cmds/ddspawn deleted file mode 100755 index d4a40342..00000000 --- a/.local/bin/i3cmds/ddspawn +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -# Toggle floating dropdown terminal in i3, or start if non-existing. -# $1 is the script run in the terminal. -# All other args are terminal settings. -# Terminal names are in dropdown_* to allow easily setting i3 settings. - -[ -z "$1" ] && exit - -script=$1 -shift -if xwininfo -tree -root | grep "(\"dropdown_$script\" "; -then - echo "Window detected." - i3 "[instance=\"dropdown_$script\"] scratchpad show; [instance=\"dropdown_$script\"] move position center" -else - echo "Window not detected... spawning." - i3 "exec --no-startup-id $TERMINAL -n dropdown_$script $@ -e $script" -fi