modem: use XDG_CONFIG_HOME to save logs
Signed-off-by: Miles Alan <m@milesalan.com>
This commit is contained in:
parent
66eeb46a55
commit
1b78c3cf2f
5 changed files with 10 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
PID=$$
|
||||
LOGDIR=/home/$USER/.sxmo
|
||||
LOGDIR="$XDG_CONFIG_HOME"/sxmo/modem
|
||||
trap "kill 0" SIGINT
|
||||
|
||||
err() {
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
st -fn "Terminus-14" -e tail -f ~/.sxmo/modemlog.tsv
|
||||
LOGDIR="$XDG_CONFIG_HOME"/sxmo/modem
|
||||
st -fn "Terminus-14" -e tail -f "$LOGDIR"/modemlog.tsv
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
TIMEOUT=3
|
||||
LOGDIR=/home/$USER/.sxmo
|
||||
LOGDIR="$XDG_CONFIG_HOME"/sxmo/modem
|
||||
ACTIVECALL="NONE"
|
||||
trap "kill 0" SIGINT
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
EDITOR=vis
|
||||
LOGDIR=/home/$USER/.sxmo
|
||||
LOGDIR="$XDG_CONFIG_HOME"/sxmo/modem
|
||||
|
||||
err() {
|
||||
echo $1 | dmenu -fn Terminus-20 -c -l 10
|
||||
|
@ -90,4 +90,4 @@ main() {
|
|||
tailtextlog "$(echo $NUMBER | sed 's/ logfile//g')"
|
||||
}
|
||||
|
||||
main
|
||||
main
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue