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 · 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")), }),] }