From 1e267c52240e177f635f8f718099571e24493088 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 17 Dec 2024 18:37:56 +0000 Subject: Converted from bash to sh. --- .config/river/autostart.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to '.config/river/autostart.sh') 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" & -- cgit v1.2.3