kmscon is one of those scripts that need configs

This commit is contained in:
Jack L. Frost 2014-07-21 20:10:36 +04:00
parent d8089e6325
commit d9610d7832
3 changed files with 17 additions and 1 deletions

3
conf.d/kmscon.sh Normal file
View File

@ -0,0 +1,3 @@
# KMSCON config
service_args+=' --hwaccel --drm --font-name terminus --palette solarized' # The space at the start is important.

13
init.d/X Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env watchman
service_username='fbt'
export HOME="/home/${service_username}"
service_workdir="$HOME"
service_command='/bin/ssh-agent'
service_args='/bin/xinit'
start() {
cd "$service_workdir"
su "$service_username" -c "$BASH -l -c '${service_command} ${service_args}'" &>/tmp/xinit.log &
}

View File

@ -4,4 +4,4 @@ tty=${service_name##*-};
service_respawn='true'
service_command='/usr/bin/kmscon'
service_args="--vt ${tty} --hwaccel --drm --font-name terminus --palette solarized"
service_args="--vt ${tty}"