|
|
@ -167,7 +167,7 @@ program=$1
|
|
|
|
|
|
|
|
|
|
|
|
# check that the program is not a path and does not contain flags
|
|
|
|
# check that the program is not a path and does not contain flags
|
|
|
|
if [[ ! $program =~ ^(current|auto_hide|auto_show|toggle_auto_hide)$ ]] && \
|
|
|
|
if [[ ! $program =~ ^(current|auto_hide|auto_show|toggle_auto_hide)$ ]] && \
|
|
|
|
! type "$program" 2> /dev/null; then
|
|
|
|
! type "$program" &> /dev/null; then
|
|
|
|
echo >&2 "The program should be in PATH and not contain flags." | \
|
|
|
|
echo >&2 "The program should be in PATH and not contain flags." | \
|
|
|
|
tee -a "$MUTDROP_PATH"/log
|
|
|
|
tee -a "$MUTDROP_PATH"/log
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
@ -487,7 +487,7 @@ unmap() {
|
|
|
|
|
|
|
|
|
|
|
|
# * General Helper Functions
|
|
|
|
# * General Helper Functions
|
|
|
|
get_class_name() {
|
|
|
|
get_class_name() {
|
|
|
|
xprop -id "$1" WM_CLASS | awk '{gsub(/"/, ""); print $4}'
|
|
|
|
xprop -id "$1" WM_CLASS 2> /dev/null | awk '{gsub(/"/, ""); print $4}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
get_visibility() {
|
|
|
|
get_visibility() {
|
|
|
|