mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add the LoadConfigFile action (#2163)
* Add the `LoadConfigFile` action * fixes --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
This commit is contained in:
@@ -164,6 +164,7 @@ use crate::ui::screen_transition::{self, ScreenTransition};
|
||||
use crate::ui::screenshot_ui::{OutputScreenshot, ScreenshotUi, ScreenshotUiRenderElement};
|
||||
use crate::utils::scale::{closest_representable_scale, guess_monitor_scale};
|
||||
use crate::utils::spawning::{CHILD_DISPLAY, CHILD_ENV};
|
||||
use crate::utils::watcher::Watcher;
|
||||
use crate::utils::xwayland::satellite::Satellite;
|
||||
use crate::utils::{
|
||||
center, center_f64, expand_home, get_monotonic_time, ipc_transform_to_smithay, is_mapped,
|
||||
@@ -190,6 +191,8 @@ pub struct Niri {
|
||||
/// (and transient changes dropped).
|
||||
pub config_file_output_config: niri_config::Outputs,
|
||||
|
||||
pub config_file_watcher: Option<Watcher>,
|
||||
|
||||
pub event_loop: LoopHandle<'static, State>,
|
||||
pub scheduler: Scheduler<()>,
|
||||
pub stop_signal: LoopSignal,
|
||||
@@ -2528,6 +2531,7 @@ impl Niri {
|
||||
let mut niri = Self {
|
||||
config,
|
||||
config_file_output_config,
|
||||
config_file_watcher: None,
|
||||
|
||||
event_loop,
|
||||
scheduler,
|
||||
|
||||
Reference in New Issue
Block a user