pub struct ActionsPluginConfig {
pub actions: Vec<ActionsPluginAction>,
}Fields§
§actions: Vec<ActionsPluginAction>Trait Implementations§
Source§impl Clone for ActionsPluginConfig
impl Clone for ActionsPluginConfig
Source§fn clone(&self) -> ActionsPluginConfig
fn clone(&self) -> ActionsPluginConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActionsPluginConfig
impl Debug for ActionsPluginConfig
Source§impl Default for ActionsPluginConfig
impl Default for ActionsPluginConfig
Source§fn default() -> Self
fn default() -> Self
Return ActionsPluginConfig { actions: vec![ActionsPluginAction::LockScreen, ActionsPluginAction::Hibernate, ActionsPluginAction::Logout, ActionsPluginAction::Reboot, ActionsPluginAction::Shutdown, ActionsPluginAction::Suspend, ActionsPluginAction::Custom(ActionsPluginActionCustom { names: vec!["Kill".into(), "Stop".into()], details: "Kill or stop a process by name".into(), command: "pkill \"{}\" && notify-send hyprshell \"stopped {}\"".into(), icon: Box::from(Path::new("remove")), }), ActionsPluginAction::Custom(ActionsPluginActionCustom { names: vec!["Reload Hyprshell".into()], details: "Reload Hyprshell".into(), command: "sleep 1; hyprshell socat '\"Restart\"'".into(), icon: Box::from(Path::new("system-restart")), }),] }
Source§impl<'de> Deserialize<'de> for ActionsPluginConfigwhere
ActionsPluginConfig: Default,
impl<'de> Deserialize<'de> for ActionsPluginConfigwhere
ActionsPluginConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<ActionsPluginConfig> for ActionsPluginConfig
impl From<ActionsPluginConfig> for ActionsPluginConfig
Source§fn from(value: ActionsPluginConfig) -> Self
fn from(value: ActionsPluginConfig) -> Self
Source§impl PartialEq for ActionsPluginConfig
impl PartialEq for ActionsPluginConfig
Source§fn eq(&self, other: &ActionsPluginConfig) -> bool
fn eq(&self, other: &ActionsPluginConfig) -> bool
self and other values to be equal, and is used by ==.