17 lines
291 B
Bash
Executable File
17 lines
291 B
Bash
Executable File
#!/bin/sh
|
|
|
|
RES=$(xrandr | grep "*+" | awk '{print $1}' | head -1)
|
|
|
|
RESH=${RES%x*}
|
|
RESV=${RES#*x}
|
|
|
|
GAP=$(( RESH / 12 ))
|
|
|
|
H=$(( RESH - 2 * GAP ))
|
|
V=$(( RESV - 2 * GAP ))
|
|
|
|
echo "Executing mpv --geometry=${H}x${V}"
|
|
_SWM_WS=-1 /usr/local/bin/mpv --x11-name=scratchpad --geometry=${H}x${V} "$@"
|
|
|
|
|