aboutsummaryrefslogtreecommitdiff
path: root/floats/mpvFloatLoop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'floats/mpvFloatLoop.sh')
-rwxr-xr-xfloats/mpvFloatLoop.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/floats/mpvFloatLoop.sh b/floats/mpvFloatLoop.sh
index c65bd8d..e0e1714 100755
--- a/floats/mpvFloatLoop.sh
+++ b/floats/mpvFloatLoop.sh
@@ -1,2 +1,3 @@
#!/bin/sh
-nohup mpv --loop-playlist --geometry=-0-0 --autofit=40% --title="mpvfloat" "$@" >/dev/null &
+pgrep -x bspwm >/dev/null && bspc rule -a mpv --one-shot state=floating
+nohup mpv --loop-playlist --geometry=-10-10 --autofit=40% "$@" >/dev/null &