modem: use XDG_CONFIG_HOME to save logs

Signed-off-by: Miles Alan <m@milesalan.com>
This commit is contained in:
Anjandev Momi 2020-06-04 21:26:16 -07:00 committed by Miles Alan
parent 66eeb46a55
commit 1b78c3cf2f
5 changed files with 10 additions and 6 deletions

View file

@ -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"