Restructure configs into seperate folder

master
Miles Alan 5 years ago
parent d713b19199
commit 0801bb1adb
  1. 6
      Makefile
  2. 0
      configs/alsa/alsa_sxmo_enable_dmix.conf
  3. 0
      configs/alsa/default_alsa_sound.conf
  4. 0
      configs/appcfg/conky.conf
  5. 0
      configs/appcfg/dunst.conf
  6. 0
      configs/appcfg/places_for_gps.tsv
  7. 0
      configs/appcfg/sxmo_sfeedrc
  8. 0
      configs/appcfg/xmodmap_caps_esc
  9. 0
      configs/appcfg/xresources_xcalc.xr
  10. 0
      configs/polkit/00-sxmo.rules
  11. 2
      scripts/appscripts/sxmo_rss.sh
  12. 2
      scripts/appscripts/sxmo_weather.sh
  13. 2
      scripts/core/sxmo_gpsutil.sh
  14. 2
      scripts/core/sxmo_statusbarupdate.sh
  15. 10
      scripts/core/sxmo_xinit.sh
  16. 2
      scripts/modem/sxmo_modemcall.sh

@ -22,13 +22,13 @@ programs/sxmo_vibratepine:
install: programs/sxmo_setpineled programs/sxmo_setpinebacklight programs/sxmo_screenlock programs/sxmo_megiaudioroute programs/sxmo_vibratepine
mkdir -p $(PREFIX)/usr/share/sxmo
cp configs/* $(PREFIX)/usr/share/sxmo
cp -r configs/* $(PREFIX)/usr/share/sxmo
mkdir -p $(PREFIX)/etc/alsa/conf.d/
cp configs/alsa_sxmo_enable_dmix.conf $(PREFIX)/etc/alsa/conf.d/
cp configs/alsa/alsa_sxmo_enable_dmix.conf $(PREFIX)/etc/alsa/conf.d/
mkdir -p $(PREFIX)/etc/polkit-1/rules.d
cp configs/00-sxmo.rules $(PREFIX)/etc/polkit-1/rules.d/
cp configs/polkit/00-sxmo.rules $(PREFIX)/etc/polkit-1/rules.d/
mkdir -p $(PREFIX)/usr/bin
cp scripts/*/* $(PREFIX)/usr/bin

@ -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() {

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

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

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

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

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

Loading…
Cancel
Save