aboutsummaryrefslogtreecommitdiff
path: root/.local/etc/wrapper.d
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-12-06 14:59:15 +0100
committerPatrick Spek <p.spek@tyil.nl>2022-12-06 14:59:15 +0100
commitafb5cbbe4ab09651b100ce5c409a5ecd5c992939 (patch)
tree7e6f15908322751064aa6534401921ff7661e51b /.local/etc/wrapper.d
parent4c9c16944b4dcb292198c02cb0f4df61ebd2f0f9 (diff)
Update wrapper script
Diffstat (limited to '.local/etc/wrapper.d')
-rw-r--r--.local/etc/wrapper.d/firefox.rc4
-rw-r--r--.local/etc/wrapper.d/mpv.rc6
2 files changed, 7 insertions, 3 deletions
diff --git a/.local/etc/wrapper.d/firefox.rc b/.local/etc/wrapper.d/firefox.rc
index 43e745c..a47d1a4 100644
--- a/.local/etc/wrapper.d/firefox.rc
+++ b/.local/etc/wrapper.d/firefox.rc
@@ -5,6 +5,8 @@ WRAPPER_BINS="
/usr/bin/librewolf-bin
"
-WRAPPER_OPTS="--profile \"$HOME/.config/firefox\""
+WRAPPER_OPTS="
+ --profile $HOME/.config/firefox
+"
FIREJAIL_PROFILE="$HOME/.local/etc/firejail/firefox.profile"
diff --git a/.local/etc/wrapper.d/mpv.rc b/.local/etc/wrapper.d/mpv.rc
index de66126..6dc9579 100644
--- a/.local/etc/wrapper.d/mpv.rc
+++ b/.local/etc/wrapper.d/mpv.rc
@@ -3,7 +3,8 @@
wrap_before() {
if command -v mpc > /dev/null && mpc status | awk 'NR==2 { print }' | grep -iq playing
then
- wrap_run mpc pause > /dev/null
+ wrap_log "> mpc pause"
+ mpc pause > /dev/null
WRAPPER_X_MPD_PAUSED="yes"
fi
}
@@ -11,6 +12,7 @@ wrap_before() {
wrap_after() {
if [ "$WRAPPER_X_MPD_PAUSED" ]
then
- wrap_run mpc play > /dev/null
+ wrap_log "> mpc play"
+ mpc play > /dev/null
fi
}