diff options
Diffstat (limited to 'floats/urxvtFloat.sh')
-rwxr-xr-x | floats/urxvtFloat.sh | 7 |
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 "$@" |