aboutsummaryrefslogtreecommitdiff
path: root/floats/urxvtFloat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'floats/urxvtFloat.sh')
-rwxr-xr-xfloats/urxvtFloat.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/floats/urxvtFloat.sh b/floats/urxvtFloat.sh
index cefc6a3..a6bc851 100755
--- a/floats/urxvtFloat.sh
+++ b/floats/urxvtFloat.sh
@@ -1,2 +1,7 @@
#!/bin/sh
-urxvt -title floating -geometry "$1x$2-5-5" -e "$3"
+pgrep -x bspwm >/dev/null && bspc rule -a URxvt --one-shot state=floating
+
+width="$1"
+height="$2"
+shift 2
+urxvt -geometry "${width}x${height}-10-10" -e "$@"