Profile: Add default profile
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
@ -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
|
||||
}
|
@ -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() {
|
||||
}
|
||||
}
|
@ -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"
|
||||
}
|
Reference in New Issue
Block a user