Added check in config/.scripts/*.sh scripts wether the needed commands are available
Fixed shebang for some scrips Removed unnecessary config/.scripts/lock.sh and replaced lock.sh with i3lock.py in the script that executed lock.sh
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
type pactl >/dev/null 2>&1 || { echo >&2 "I require pactl but it's not installed. Aborting."; exit 1; }
|
||||
type amixer >/dev/null 2>&1 || { echo >&2 "I require amixer but it's not installed. Aborting."; exit 1; }
|
||||
type dunstify >/dev/null 2>&1 || { echo >&2 "I require dunstify but it's not installed. Aborting."; exit 1; }
|
||||
|
||||
defaultSink=$(pactl info | grep 'Default Sink' | cut -d' ' -f3);
|
||||
curVolume=$(amixer get Master | grep -o \[0-9\]\\+% -m 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user