*: Use tabs for indentation where appropriate

I am a big supporter of the approach to indent with tabs and align with
spaces. (Read [here][1] f.e.) Thus at some places a simple `s/ {4}/\t/g`
(replace 4 with whatever fits) is not enough and a bit more thought is
needed. Because of that there are still places where I plan to
substitute the whitespace in the future.

This patch contains exclusively whitespace changes. Check for yourself
with `git diff --ignore-all-space`.

[1]: https://dmitryfrank.com/articles/indent_with_tabs_align_with_spaces
This commit is contained in:
2022-05-11 15:28:49 +02:00
parent b96d32996b
commit 00927c8921
9 changed files with 390 additions and 390 deletions

View File

@@ -19,16 +19,16 @@ sleep_delay=1
# Run before starting the locker
pre_lock() {
playerctl pause
"${XDG_CONFIG_HOME:-$HOME/.config}/compositor/launch.sh" -k
amixer -q -D pulse sset Master mute
return
playerctl pause
"${XDG_CONFIG_HOME:-$HOME/.config}/compositor/launch.sh" -k
amixer -q -D pulse sset Master mute
return
}
# Run after the locker exits
post_lock() {
"${XDG_CONFIG_HOME:-$HOME/.config}/compositor/launch.sh"
return
"${XDG_CONFIG_HOME:-$HOME/.config}/compositor/launch.sh"
return
}
###############################################################################
@@ -39,15 +39,15 @@ pre_lock
trap 'kill %%' TERM INT
if [[ -e /dev/fd/${XSS_SLEEP_LOCK_FD:--1} ]]; then
# lock fd is open, make sure the locker does not inherit a copy
$locker {XSS_SLEEP_LOCK_FD}<&- &
# lock fd is open, make sure the locker does not inherit a copy
$locker {XSS_SLEEP_LOCK_FD}<&- &
sleep $sleep_delay
sleep $sleep_delay
# now close our fd (only remaining copy) to indicate we're ready to sleep
exec {XSS_SLEEP_LOCK_FD}<&-
# now close our fd (only remaining copy) to indicate we're ready to sleep
exec {XSS_SLEEP_LOCK_FD}<&-
else
$locker &
$locker &
fi
wait # for locker to exit