~mil/f_scripts

ref: 0.3 f_scripts/scripts/f_maps -rwxr-xr-x 758 bytes
f29da769Miles Alan f_audio, f_youtube: Set dac to 100%, fixed muted sound by default 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env osh
shopt -s strict:all
DEP="mepo tslib"
DEC="Browse OSM maps using mepo (via SDL directfb)."
DOC="
  Launches mepo to browse OSM maps in SDL / directfb mode.  Currently
  experimental compatibility currently. Newer versions of mepo should
  have good support via helper scripts using chvt for menu entries.
"

runmepo() {
  export DFBARGS="system=fbdev,no-cursor,disable-module=linux_input,no-vt-switch"
  INPUTDEV="$(ts_uinput -d -v)"
  export TSLIB_TSDEVICE="$INPUTDEV"
  ts_calibrate

  [ -p /tmp/fbp.fifo ] && { echo -e "\b\f\e"; echo "g b /" | tr " " "\n"; } > /tmp/fbp.fifo
  mepo

  [ -p /tmp/fbp.fifo ] && echo -e "\v" > /tmp/fbp.fifo
}

main() {
  sudo USER=$USER "$(realpath $0)" runmepo
}

if [ -n "$1" ]; then "$@"; else main; fi