summaryrefslogtreecommitdiffstats
path: root/.local/bin/i3cmds/ddspawn
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-18 16:22:57 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-18 16:22:57 -0400
commit8117f841988e1e3e32926928d7b9053a78df67a8 (patch)
treebb796c0dee21bccbc26c44472954f71cc23f96c3 /.local/bin/i3cmds/ddspawn
parent67f70d70bb746cd25b56e36a881201ae547b7a36 (diff)
downloadeibhear-8117f841988e1e3e32926928d7b9053a78df67a8.tar.gz
eibhear-8117f841988e1e3e32926928d7b9053a78df67a8.tar.zst
eibhear-8117f841988e1e3e32926928d7b9053a78df67a8.zip
i3 eternally btfo
Diffstat (limited to '.local/bin/i3cmds/ddspawn')
-rwxr-xr-x.local/bin/i3cmds/ddspawn19
1 files changed, 0 insertions, 19 deletions
diff --git a/.local/bin/i3cmds/ddspawn b/.local/bin/i3cmds/ddspawn
deleted file mode 100755
index d4a4034..0000000
--- 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