sov: add SwayOverView
This commit is contained in:
parent
c30ef96b27
commit
ccb4da6643
3 changed files with 117 additions and 10 deletions
bin
22
bin/start_sov.sh
Executable file
22
bin/start_sov.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env sh
|
||||
PATH=$PATH:$HOME/bin
|
||||
CONFIG=$HOME/.config/sway/sov.d/config
|
||||
FIFO=/tmp/sovpipe
|
||||
CMD="sov"
|
||||
ARGS=" -v -c $CONFIG"
|
||||
LOG=$HOME/log/sov.log
|
||||
|
||||
which $CMD &> /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "missing $CMD executable in PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Terminate already running bar instances
|
||||
pkill -x $CMD
|
||||
rm -f $LOG
|
||||
# create fifo
|
||||
rm -f $FIFO
|
||||
mkfifo $FIFO
|
||||
# execute new instance
|
||||
tail -f $FIFO | $CMD $ARGS 2>&1 | tee -a $LOG
|
Loading…
Add table
Add a link
Reference in a new issue