modem: use XDG_CONFIG_HOME to save logs

Signed-off-by: Miles Alan <m@milesalan.com>
master
Anjandev Momi 5 years ago committed by Miles Alan
parent 66eeb46a55
commit 1b78c3cf2f
  1. 5
      scripts/core/sxmo_xinit.sh
  2. 2
      scripts/modem/sxmo_modemcall.sh
  3. 3
      scripts/modem/sxmo_modemlog.sh
  4. 2
      scripts/modem/sxmo_modemmonitor.sh
  5. 4
      scripts/modem/sxmo_modemtext.sh

@ -3,6 +3,7 @@ source /etc/profile
which $TERM || export TERM=st
which $BROWSER || export BROWSER=surf
[ -z "$MOZ_USE_XINPUT2" ] && export MOZ_USE_XINPUT2=1
[ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME=~/.config
xmodmap /usr/share/sxmo/xmodmap_caps_esc
xsetroot -mod 3 2 -fg '#000000' -bg '#888888'
@ -22,4 +23,6 @@ pkill lisgd
conky -c /usr/share/sxmo/conky.conf -d
autocutsel & autocutsel -selection PRIMARY &
sxmo_statusbar.sh &
exec dbus-run-session sh -c "dunst -conf /usr/share/sxmo/dunst.conf & lisgd & dwm 2> ~/.dwm.log"
exec dbus-run-session sh -c "dunst -conf /usr/share/sxmo/dunst.conf & lisgd &
[ -d "~/.sxmo" ] && notify-send -t 0 -u critical '~/.sxmo is deprecated. To preserve your modem logs, please move the contents of the ~/.sxmo folder into the $XDG_CONFIG_HOME/sxmo/modem/ folder' &
dwm 2> ~/.dwm.log"

@ -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…
Cancel
Save