Profile: Add default profile

This commit is contained in:
zt515
2017-12-04 23:54:17 +08:00
parent a631a24ccf
commit 365488f461
4 changed files with 44 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import io.neoterm.component.config.ConfigureComponent
import io.neoterm.component.eks.ExtraKeysComponent
import io.neoterm.component.font.FontComponent
import io.neoterm.component.pm.PackageComponent
import io.neoterm.component.profile.ProfileComponent
import io.neoterm.component.script.UserScriptComponent
import io.neoterm.component.session.SessionComponent
import io.neoterm.frontend.logging.NLog
@ -28,5 +29,6 @@ object NeoInitializer {
ComponentManager.registerComponent(CompletionComponent::class.java)
ComponentManager.registerComponent(PackageComponent::class.java)
ComponentManager.registerComponent(SessionComponent::class.java)
ComponentManager.registerComponent(ProfileComponent::class.java)
}
}

View File

@ -4,6 +4,12 @@ package io.neoterm.component.profile
* @author kiva
*/
class Profile {
lateinit var profileShell: String
lateinit var profileFont: String
lateinit var profileColorScheme: String
lateinit var profileInitialCommand: String
var enableBell = false
var enableVibrate = false
var enableExecveWrapper = true
var specializeVolumeKeys = false
}

View File

@ -0,0 +1,17 @@
package io.neoterm.component.profile
import io.neoterm.frontend.component.NeoComponent
/**
* @author kiva
*/
class ProfileComponent : NeoComponent {
override fun onServiceInit() {
}
override fun onServiceDestroy() {
}
override fun onServiceObtained() {
}
}

View File

@ -0,0 +1,19 @@
package io.neoterm.frontend.preference
/**
* @author kiva
*/
object DefaultPreference {
const val enableBell = false
const val enableVibrate = false
const val enableExecveWrapper = true
const val enableAutoCompletion = false
const val enableFullScreen = false
const val enableAutoHideToolbar = false
const val enableSwitchNextTab = false
const val enableExtraKeys = true
const val enableExplicitExtraKeysWeight = false
const val enableSpecialVolumeKeys = false
const val defaultShell = "bash"
}