Profile: Use default values to create profile
This commit is contained in:
@ -1,15 +1,19 @@
|
|||||||
package io.neoterm.component.profile
|
package io.neoterm.component.profile
|
||||||
|
|
||||||
|
import io.neoterm.frontend.preference.DefaultPreference
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author kiva
|
* @author kiva
|
||||||
*/
|
*/
|
||||||
class Profile {
|
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 profileFont: String
|
||||||
lateinit var profileColorScheme: 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 enableExplicitExtraKeysWeight = false
|
||||||
const val enableSpecialVolumeKeys = false
|
const val enableSpecialVolumeKeys = false
|
||||||
|
|
||||||
const val defaultShell = "bash"
|
const val loginShell = "bash"
|
||||||
|
const val initialCommand = ""
|
||||||
}
|
}
|
Reference in New Issue
Block a user