mirror of
https://github.com/adi1090x/rofi
synced 2026-01-20 15:21:16 +01:00
make tests for i3lock and betterlockscreen POSIX compliant
This commit is contained in:
parent
093c1a79f5
commit
026d854905
6 changed files with 12 additions and 12 deletions
|
|
@ -95,9 +95,9 @@ case ${chosen} in
|
|||
run_cmd --reboot
|
||||
;;
|
||||
$lock)
|
||||
if [[ -x '/usr/bin/betterlockscreen' ]]; then
|
||||
if command -v betterlockscreen >/dev/null 2>&1; then
|
||||
betterlockscreen -l
|
||||
elif [[ -x '/usr/bin/i3lock' ]]; then
|
||||
elif command -v i3lock >/dev/null 2>&1; then
|
||||
i3lock
|
||||
fi
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -96,9 +96,9 @@ case ${chosen} in
|
|||
run_cmd --reboot
|
||||
;;
|
||||
$lock)
|
||||
if [[ -x '/usr/bin/betterlockscreen' ]]; then
|
||||
if command -v betterlockscreen >/dev/null 2>&1; then
|
||||
betterlockscreen -l
|
||||
elif [[ -x '/usr/bin/i3lock' ]]; then
|
||||
elif command -v i3lock >/dev/null 2>&1; then
|
||||
i3lock
|
||||
fi
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -90,9 +90,9 @@ case ${chosen} in
|
|||
run_cmd --reboot
|
||||
;;
|
||||
$lock)
|
||||
if [[ -x '/usr/bin/betterlockscreen' ]]; then
|
||||
if command -v betterlockscreen >/dev/null 2>&1; then
|
||||
betterlockscreen -l
|
||||
elif [[ -x '/usr/bin/i3lock' ]]; then
|
||||
elif command -v i3lock >/dev/null 2>&1; then
|
||||
i3lock
|
||||
fi
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -90,9 +90,9 @@ case ${chosen} in
|
|||
run_cmd --reboot
|
||||
;;
|
||||
$lock)
|
||||
if [[ -x '/usr/bin/betterlockscreen' ]]; then
|
||||
if command -v betterlockscreen >/dev/null 2>&1; then
|
||||
betterlockscreen -l
|
||||
elif [[ -x '/usr/bin/i3lock' ]]; then
|
||||
elif command -v i3lock >/dev/null 2>&1; then
|
||||
i3lock
|
||||
fi
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -102,9 +102,9 @@ case ${chosen} in
|
|||
run_cmd --hibernate
|
||||
;;
|
||||
$lock)
|
||||
if [[ -x '/usr/bin/betterlockscreen' ]]; then
|
||||
if command -v betterlockscreen >/dev/null 2>&1; then
|
||||
betterlockscreen -l
|
||||
elif [[ -x '/usr/bin/i3lock' ]]; then
|
||||
elif command -v i3lock >/dev/null 2>&1; then
|
||||
i3lock
|
||||
fi
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -102,9 +102,9 @@ case ${chosen} in
|
|||
run_cmd --hibernate
|
||||
;;
|
||||
$lock)
|
||||
if [[ -x '/usr/bin/betterlockscreen' ]]; then
|
||||
if command -v betterlockscreen >/dev/null 2>&1; then
|
||||
betterlockscreen -l
|
||||
elif [[ -x '/usr/bin/i3lock' ]]; then
|
||||
elif command -v i3lock >/dev/null 2>&1; then
|
||||
i3lock
|
||||
fi
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue