aboutsummaryrefslogtreecommitdiff
path: root/floats/urxvtFloat.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-08-07 21:04:11 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-08-07 21:04:11 +0200
commit9fe2bc3fa66f25be635c5d4d66285718a0b116da (patch)
tree2da5d44d23da9e8984b9d58b854d6effa6f3493b /floats/urxvtFloat.sh
parent0a425fd64f18e1a37db9d2efbed312df702c6d2c (diff)
downloadscripts-9fe2bc3fa66f25be635c5d4d66285718a0b116da.tar.gz
scripts-9fe2bc3fa66f25be635c5d4d66285718a0b116da.zip
Made some floating windows scripts work on bspwm and not change the window name.
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 "$@"