diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-12-17 18:37:56 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-12-17 18:37:56 +0000 |
commit | 1e267c52240e177f635f8f718099571e24493088 (patch) | |
tree | a8c3dce192a099c855d2332b75ec86a670b47b59 /.config/river/autostart.sh | |
parent | 8f064c692ff1407ef9b1daaa4d1aa723066d19c7 (diff) |
Converted from bash to sh.
Diffstat (limited to '.config/river/autostart.sh')
-rwxr-xr-x | .config/river/autostart.sh | 16 |
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" & |