13 lines
302 B
Bash
Executable file
13 lines
302 B
Bash
Executable file
#!/bin/bash
|
|
set -x
|
|
# toggles the help wrapper state
|
|
|
|
VISIBILITY_SIGNAL=30
|
|
QUIT_SIGNAL=31
|
|
|
|
if [ "$1" = "--toggle" ]; then
|
|
pkill -f -${VISIBILITY_SIGNAL} nwg-wrapper
|
|
else
|
|
pkill -f -${QUIT_SIGNAL} nwg-wrapper
|
|
nwg-wrapper -i -sv ${VISIBILITY_SIGNAL} -sq ${QUIT_SIGNAL} -s help.sh -p left -a end &
|
|
fi
|