aboutsummaryrefslogtreecommitdiff
path: root/.config/river/autostart.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/river/autostart.sh')
-rwxr-xr-x.config/river/autostart.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/.config/river/autostart.sh b/.config/river/autostart.sh
index c2be8d7..ca4a846 100755
--- a/.config/river/autostart.sh
+++ b/.config/river/autostart.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# Authentication dialog
@@ -25,16 +25,16 @@ pkill -f wlsunset
wlsunset -l 57.4 -L -1.9 &
# Restore previous brightness
-backlight $(grep 'brightness:' ~/.cache/brightness | awk '{print $2}')
+backlight "$(grep 'brightness:' ~/.cache/brightness | awk '{print $2}')"
# Restore audio volume
-mixer vol.volume=$(grep 'vol.volume=' ~/.cache/audio-volume | awk -F ':' '{print $2}')
-mixer vol.mute=$(grep 'vol.mute=' ~/.cache/audio-volume | awk -F '=' '{print $2}')
+mixer vol.volume="$(grep 'vol.volume=' ~/.cache/audio-volume | awk -F ':' '{print $2}')"
+mixer vol.mute="$(grep 'vol.mute=' ~/.cache/audio-volume | awk -F '=' '{print $2}')"
-export wallpaper=$( echo $wallpaper)
+export wallpaper="$($wallpaper)"
pkill -f swayidle
swayidle -w \
- timeout 300 'swaylock -f -i $wallpaper' \
- timeout 600 'wlopm --off \*;swaylock -F -i $wallpaper' resume 'wlopm --on \*' \
- before-sleep 'swaylock -f -i $wallpaper' &
+ timeout 300 "swaylock -f -i $wallpaper" \
+ timeout 600 "wlopm --off \*;swaylock -F -i $wallpaper" resume "wlopm --on \*" \
+ before-sleep "swaylock -f -i $wallpaper" &