summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds/ddspawn
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-18 00:07:32 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-18 00:07:32 -0400
commit54920103c2843f5a3620effbccaceaee7f6885c1 (patch)
tree222aa8e75573364cd043382996f4798d94104f65 /.scripts/i3cmds/ddspawn
parent18e001db07d7105ab4dc4f4f836ca0d3a516a791 (diff)
downloadeibhear-54920103c2843f5a3620effbccaceaee7f6885c1.tar.gz
eibhear-54920103c2843f5a3620effbccaceaee7f6885c1.tar.zst
eibhear-54920103c2843f5a3620effbccaceaee7f6885c1.zip
scripts moved to ~/.local/bin
Diffstat (limited to '.scripts/i3cmds/ddspawn')
-rwxr-xr-x.scripts/i3cmds/ddspawn19
1 files changed, 0 insertions, 19 deletions
diff --git a/.scripts/i3cmds/ddspawn b/.scripts/i3cmds/ddspawn
deleted file mode 100755
index d4a4034..0000000
--- a/.scripts/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