aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rwxr-xr-x.config/river/autostart.sh16
-rwxr-xr-x.config/river/init28
2 files changed, 22 insertions, 22 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