Profile: Use default values to create profile
This commit is contained in:
parent
365488f461
commit
b83dc8f752
@ -1,15 +1,19 @@
|
||||
package io.neoterm.component.profile
|
||||
|
||||
import io.neoterm.frontend.preference.DefaultPreference
|
||||
|
||||
/**
|
||||
* @author kiva
|
||||
*/
|
||||
class Profile {
|
||||
lateinit var profileShell: String
|
||||
var profileShell = DefaultPreference.loginShell
|
||||
var profileInitialCommand = DefaultPreference.initialCommand
|
||||
|
||||
var enableBell = DefaultPreference.enableBell
|
||||
var enableVibrate = DefaultPreference.enableVibrate
|
||||
var enableExecveWrapper = DefaultPreference.enableExecveWrapper
|
||||
var enableSpecialVolumeKeys = DefaultPreference.enableSpecialVolumeKeys
|
||||
|
||||
lateinit var profileFont: String
|
||||
lateinit var profileColorScheme: String
|
||||
lateinit var profileInitialCommand: String
|
||||
var enableBell = false
|
||||
var enableVibrate = false
|
||||
var enableExecveWrapper = true
|
||||
var specializeVolumeKeys = false
|
||||
}
|
@ -15,5 +15,6 @@ object DefaultPreference {
|
||||
const val enableExplicitExtraKeysWeight = false
|
||||
const val enableSpecialVolumeKeys = false
|
||||
|
||||
const val defaultShell = "bash"
|
||||
}
|
||||
const val loginShell = "bash"
|
||||
const val initialCommand = ""
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user