Restructure configs into seperate folder

This commit is contained in:
Miles Alan 2020-07-12 11:50:30 -05:00
parent d713b19199
commit 0801bb1adb
16 changed files with 14 additions and 12 deletions

View file

@ -4,7 +4,7 @@ if [ -f "$XDG_CONFIG_HOME/sxmo/sfeedrc" ]; then
elif [ -f "$HOME/.sfeed/sfeedrc" ]; then
SFEEDCONF="$HOME/.sfeed/sfeedrc"
else
SFEEDCONF=/usr/share/sxmo/sxmo_sfeedrc
SFEEDCONF=/usr/share/sxmo/appcfg/sxmo_sfeedrc
fi
die() {

View file

@ -1,5 +1,5 @@
#!/usr/bin/env sh
[ -z "$SXMO_GPSLOCATIONSFILES" ] && SXMO_GPSLOCATIONSFILES="/usr/share/sxmo/places_for_gps.tsv"
[ -z "$SXMO_GPSLOCATIONSFILES" ] && SXMO_GPSLOCATIONSFILES="/usr/share/sxmo/appcfg/places_for_gps.tsv"
ROWHOURS=12
WEATHERXML=""

View file

@ -1,5 +1,5 @@
#!/usr/bin/env sh
[ -z "$SXMO_GPSLOCATIONSFILES" ] && SXMO_GPSLOCATIONSFILES="/usr/share/sxmo/places_for_gps.tsv"
[ -z "$SXMO_GPSLOCATIONSFILES" ] && SXMO_GPSLOCATIONSFILES="/usr/share/sxmo/appcfg/places_for_gps.tsv"
CTILESIZE=256
CLN2=0.693147180559945309417
CPI=3.14159265358979323846

View file

@ -0,0 +1,2 @@
#!/usr/bin/env sh
pgrep -f "$(command -v sxmo_statusbar.sh)" | xargs kill -USR1 &

View file

@ -8,11 +8,11 @@ command -v "$BROWSER" || export BROWSER=surf
[ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME=~/.config
# Setup audio and a few sensible X defaults
alsactl --file /usr/share/sxmo/default_alsa_sound.conf restore
xmodmap /usr/share/sxmo/xmodmap_caps_esc
alsactl --file /usr/share/sxmo/alsa/default_alsa_sound.conf restore
xmodmap /usr/share/sxmo/appcfg/xmodmap_caps_esc
xsetroot -mod 3 2 -fg '#000000' -bg '#888888'
xset s off -dpms
xrdb /usr/share/sxmo/xresources_xcalc.xr
xrdb /usr/share/sxmo/appcfg/xresources_xcalc.xr
synclient TapButton1=1 TapButton2=3 TapButton3=2 MinSpeed=0.25
# Start daemons
@ -20,7 +20,7 @@ pkill conky
if [ -e "$XDG_CONFIG_HOME/sxmo/conky.conf" ]; then
conky -c $XDG_CONFIG_HOME/sxmo/conky.conf -d
else
conky -c /usr/share/sxmo/conky.conf -d
conky -c /usr/share/sxmo/appcfg/conky.conf -d
fi
keynav &
autocutsel &
@ -34,7 +34,7 @@ set +o allexport
# Startup dbus, dunst in dbus path, lisgd in dbus path, and finally dwm
exec dbus-run-session sh -c "
dunst -conf /usr/share/sxmo/dunst.conf &
dunst -conf /usr/share/sxmo/appcfg/dunst.conf &
sxmo_lisgdstart.sh &
dwm 2> ~/.dwm.log
"

View file

@ -7,7 +7,7 @@ fatalerr() {
# E.g. hangup all calls, switch back to default audio, notify user, and die
sxmo_vibratepine 1000 &
mmcli -m "$(mmcli -L | grep -oE 'Modem\/([0-9]+)' | cut -d'/' -f2)" --voice-hangup-all
alsactl --file /usr/share/sxmo/default_alsa_sound.conf restore
alsactl --file /usr/share/sxmo/alsa/default_alsa_sound.conf restore
notify-send "$1"
setsid -f sh -c 'sleep 2; smxo_statusbarupdate.sh'
kill -9 0