From a211d82939e238b4c69f34b2745b347e1422e683 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Sun, 30 Aug 2020 14:46:23 -0500 Subject: [PATCH] Set MPV_HOME in xinit and add input.conf & mpv.conf --- configs/mpv/input.conf | 1 + configs/mpv/mpv.conf | 1 + scripts/core/sxmo_xinit.sh | 1 + 3 files changed, 3 insertions(+) create mode 100644 configs/mpv/input.conf create mode 100644 configs/mpv/mpv.conf diff --git a/configs/mpv/input.conf b/configs/mpv/input.conf new file mode 100644 index 0000000..ffc8872 --- /dev/null +++ b/configs/mpv/input.conf @@ -0,0 +1 @@ +h vf toggle hflip diff --git a/configs/mpv/mpv.conf b/configs/mpv/mpv.conf new file mode 100644 index 0000000..97c2f3c --- /dev/null +++ b/configs/mpv/mpv.conf @@ -0,0 +1 @@ +title="${playtime-remaining} - ${media-title}" diff --git a/scripts/core/sxmo_xinit.sh b/scripts/core/sxmo_xinit.sh index 16ca646..5fd1e1a 100755 --- a/scripts/core/sxmo_xinit.sh +++ b/scripts/core/sxmo_xinit.sh @@ -7,6 +7,7 @@ envvars() { command -v "$BROWSER" || export BROWSER=surf command -v "$EDITOR" || export EDITOR=vis command -v "$KEYBOARD" || defaultkeyboard + [ -z "$MPV_HOME" ] && export MPV_HOME=/usr/share/sxmo/mpv [ -z "$MOZ_USE_XINPUT2" ] && export MOZ_USE_XINPUT2=1 [ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME=~/.config [ -z "$XDG_CACHE_HOME" ] && export XDG_CACHE_HOME=~/.cache