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 | |
parent | 8f064c692ff1407ef9b1daaa4d1aa723066d19c7 (diff) |
Converted from bash to sh.
-rwxr-xr-x | .config/river/autostart.sh | 16 | ||||
-rwxr-xr-x | .config/river/init | 28 | ||||
-rwxr-xr-x | .local/bin/emoji-menu.sh (renamed from .local/bin/emoji-menu) | 0 | ||||
-rwxr-xr-x | .local/bin/powermenu.sh (renamed from .local/bin/powermenu) | 4 |
4 files changed, 24 insertions, 24 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" & diff --git a/.config/river/init b/.config/river/init index 0f776a4..8e55234 100755 --- a/.config/river/init +++ b/.config/river/init @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # See the river(1), riverctl(1), and rivertile(1) man pages for complete # documentation. @@ -41,22 +41,22 @@ riverctl map normal Super+Shift E exit riverctl map normal Super D spawn "fuzzel" # Toggle bar -riverctl map normal Super B spawn "~/.config/eww/scripts/bar-toggle.sh" +riverctl map normal Super B spawn "$HOME/.config/eww/scripts/bar-toggle.sh" # Power Menu -riverctl map normal Control+Super P spawn "~/.local/bin/powermenu" +riverctl map normal Control+Super P spawn "$HOME/.local/bin/powermenu.sh" # Emoji Menu -riverctl map normal Super E spawn "~/.local/bin/emoji-menu" +riverctl map normal Super E spawn "$HOME/.local/bin/emoji-menu.sh" # Take a screenshot of the active output -riverctl map normal None Print spawn '~/.config/river/scripts/screenshot.sh' +riverctl map normal None Print spawn "$HOME/.config/river/scripts/screenshot.sh" # Take a screenshot of the selected region -riverctl map normal Super Print spawn '~/.config/river/scripts/screenshot.sh selected-region' +riverctl map normal Super Print spawn "$HOME/.config/river/scripts/screenshot.sh selected-region" # Take a screenshot and save it to the clipboard -riverctl map normal Super+Shift Print spawn '~/.config/river/scripts/screenshot.sh save-to-clipboard' +riverctl map normal Super+Shift Print spawn "$HOME/.config/river/scripts/screenshot.sh save-to-clipboard" # Super+Space to toggle float riverctl map normal Super Space toggle-float @@ -113,19 +113,19 @@ riverctl map normal Super+Alt+Shift L resize horizontal 100 # Tags for i in $(seq 1 9) do - tags=$((1 << ($i - 1))) + tags=$((1 << (i - 1))) # Super+[1-9] to focus tag [0-8] - riverctl map normal Super $i set-focused-tags $tags + riverctl map normal Super "$i" set-focused-tags "$tags" # Super+Shift+[1-9] to tag focused view with tag [0-8] - riverctl map normal Super+Shift $i set-view-tags $tags + riverctl map normal Super+Shift "$i" set-view-tags "$tags" # Super+Control+[1-9] to toggle focus of tag [0-8] - riverctl map normal Super+Control $i toggle-focused-tags $tags + riverctl map normal Super+Control "$i" toggle-focused-tags "$tags" # Super+Shift+Control+[1-9] to toggle tag [0-8] of focused view - riverctl map normal Super+Shift+Control $i toggle-view-tags $tags + riverctl map normal Super+Shift+Control "$i" toggle-view-tags "$tags" done # Super+0 to focus all tags @@ -146,7 +146,7 @@ riverctl map normal Super+Shift P set-view-tags ${scratch_tag} # Set spawn tagmask to ensure new windows don't have the scratchpad tag unless # explicitly set. -all_but_scratch_tag=$(( ((1 << 32) - 1) ^ $scratch_tag )) +all_but_scratch_tag=$(( ((1 << 32) - 1) ^ scratch_tag )) riverctl spawn-tagmask ${all_but_scratch_tag} # Layout @@ -193,7 +193,7 @@ do done # auto starting apps -bash $HOME/.config/river/autostart.sh +sh "$HOME/.config/river/autostart.sh" # Make all views with an app-id that starts with "float" and title "foo" start floating. riverctl rule-add -app-id 'float*' -title 'foo' float diff --git a/.local/bin/emoji-menu b/.local/bin/emoji-menu.sh index 6b20513..6b20513 100755 --- a/.local/bin/emoji-menu +++ b/.local/bin/emoji-menu.sh diff --git a/.local/bin/powermenu b/.local/bin/powermenu.sh index e1896b1..8d353c2 100755 --- a/.local/bin/powermenu +++ b/.local/bin/powermenu.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh read -r wallpaper<~/.cache/wallpaper @@ -8,7 +8,7 @@ reboot=" Reboot" lock_screen=" Lock Screen" suspend=" Suspend" hibernate=" Hibernate" -log_out=" Log Out" +log_out=" Log Out" # Options passed to fuzzel options="$power_off\n$reboot\n$suspend\n$hibernate\n$log_out\n$lock_screen" |