File: phog.in

package info (click to toggle)
phog 0.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,268 kB
  • sloc: ansic: 14,194; xml: 2,542; sh: 78; python: 16; makefile: 10
file content (47 lines) | stat: -rwxr-xr-x 746 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh

COMPOSITOR="@compositor@"
PHOC_INI="@pkgdatadir@/phoc.ini"

help()
{
  cat <<EOF
phog - Session start script for Phog

This is usually invoked by a display manager but you can
also run it from a tty.

Usage: phog
EOF
  exit 0
}


version()
{
   echo "@version@"
   exit 0
}

case "$1" in
  -h|-\?|--help)
    help
    ;;
  --version)
    version
    ;;
esac

if [ -x @bindir@/phoc ]; then
  COMPOSITOR=@bindir@/phoc
fi

if [ -f /etc/phog/phoc.ini ]; then
  PHOC_INI=/etc/phog/phoc.ini
fi

# Run phog through a login shell so it picks
# variables from /etc/profile.d (XDG_*)
[ -n "$WLR_BACKENDS" ] || WLR_BACKENDS=drm,libinput
export WLR_BACKENDS
exec "${COMPOSITOR}" -S -C "${PHOC_INI}" -E "bash -lc '@libexecdir@/phog & squeekboard'"