]> git.phdru.name Git - dotfiles.git/blob - bin/mplay
.xinitrc: calculate geometry for `xclock`
[dotfiles.git] / bin / mplay
1 #! /bin/sh
2
3 options="--ao pulse --quiet"
4
5 if [ -n "$AUDIO_VOLUME" ]; then
6    options="$options --af=loudnorm --volume=$AUDIO_VOLUME"
7 fi
8
9 if [ "$DISPLAY" ]; then
10    (xscreensaver-command -exit
11    xset -dpms s off) &
12 fi
13
14 cgmem_nice 1000 mpv $options "$@"
15
16 if [ -n "$DISPLAY" ]; then
17    cd "$HOME"
18    xset +dpms s on
19    xscreensaver &
20 fi