Niri

Struct Niri 

Source
pub struct Niri { /* private fields */ }

Implementations§

Source§

impl Niri

Source

pub fn connect(timeout: Option<Duration>) -> Self

Source

pub fn spawn(self, app: &App) -> Self

Source

pub fn spawn_args(self, cmd: Vec<String>) -> Self

Source

pub fn sh(self, cmd: &str) -> Self

Source

pub fn call<F>(self, func: F) -> Self
where F: FnOnce(&mut Self),

Source

pub fn quit(self, skip_confirm: bool) -> Self

Source

pub fn reload_config(self) -> Self

Source

pub fn foc_l(self) -> Self

Source

pub fn foc_r(self) -> Self

Source

pub fn foc_u(self) -> Self

Source

pub fn foc_d(self) -> Self

Source

pub fn foc_id(self, id: u64) -> Self

Source

pub fn foc_idx(self, idx: u8) -> Self

Source

pub fn foc_prev(self) -> Self

Source

pub fn foc_top(self) -> Self

Source

pub fn foc_bottom(self) -> Self

Source

pub fn foc_col_idx(self, idx: usize) -> Self

Source

pub fn foc_col_first(self) -> Self

Source

pub fn foc_col_last(self) -> Self

Source

pub fn foc_col_next_loop(self) -> Self

Source

pub fn foc_col_prev_loop(self) -> Self

Source

pub fn foc_win_mon_u(self) -> Self

Source

pub fn foc_win_mon_d(self) -> Self

Source

pub fn foc_col_mon_l(self) -> Self

Source

pub fn foc_col_mon_r(self) -> Self

Source

pub fn foc_d_col_l(self) -> Self

Source

pub fn foc_d_col_r(self) -> Self

Source

pub fn foc_u_col_l(self) -> Self

Source

pub fn foc_u_col_r(self) -> Self

Source

pub fn foc_wspace_d(self) -> Self

Source

pub fn foc_wspace_u(self) -> Self

Source

pub fn mv_win_u(self) -> Self

Source

pub fn mv_win_d(self) -> Self

Source

pub fn mv_win_u_wspace(self) -> Self

Source

pub fn mv_win_d_wspace(self) -> Self

Source

pub fn mv_col_l(self) -> Self

Source

pub fn mv_col_r(self) -> Self

Source

pub fn mv_col_first(self) -> Self

Source

pub fn mv_col_last(self) -> Self

Source

pub fn mv_col_idx(self, idx: usize) -> Self

Source

pub fn mv_col_l_mon(self) -> Self

Source

pub fn mv_col_r_mon(self) -> Self

Source

pub fn consume(self) -> Self

Source

pub fn consume_expel_l(self, id: Option<u64>) -> Self

Source

pub fn consume_expel_r(self, id: Option<u64>) -> Self

Source

pub fn expel(self) -> Self

Source

pub fn swap_l(self) -> Self

Source

pub fn swap_r(self) -> Self

Source

pub fn layout_switch(self, target: LayoutSwitchTarget) -> Self

Source

pub fn toggle_tab(self) -> Self

Source

pub fn col_display(self, mode: ColumnDisplay) -> Self

Source

pub fn center_col(self) -> Self

Source

pub fn center_win(self, id: Option<u64>) -> Self

Source

pub fn center_vis_cols(self) -> Self

Source

pub fn col_width(self, val: f64) -> Self

Source

pub fn col_max(self) -> Self

Source

pub fn expand_col(self) -> Self

Source

pub fn preset_col_width(self) -> Self

Source

pub fn preset_col_width_back(self) -> Self

Source

pub fn win_width(self, id: Option<u64>, c: SizeChange) -> Self

Source

pub fn win_height(self, val: f64) -> Self

Source

pub fn reset_win_height(self, id: Option<u64>) -> Self

Source

pub fn max_win_edge(self, id: Option<u64>) -> Self

Source

pub fn preset_win_width(self, id: Option<u64>) -> Self

Source

pub fn preset_win_width_back(self, id: Option<u64>) -> Self

Source

pub fn preset_win_height(self, id: Option<u64>) -> Self

Source

pub fn preset_win_height_back(self, id: Option<u64>) -> Self

Source

pub fn close(self, id: Option<u64>) -> Self

Source

pub fn fullscreen(self, id: Option<u64>) -> Self

Source

pub fn fake_fullscreen(self, id: Option<u64>) -> Self

Source

pub fn opacity_toggle(self, id: Option<u64>) -> Self

Source

pub fn float_toggle(self, id: Option<u64>) -> Self

Source

pub fn mv_float(self, id: Option<u64>) -> Self

Source

pub fn mv_tile(self, id: Option<u64>) -> Self

Source

pub fn foc_float(self) -> Self

Source

pub fn foc_tile(self) -> Self

Source

pub fn foc_float_tile_switch(self) -> Self

Source

pub fn mv_float_win( self, id: Option<u64>, x: PositionChange, y: PositionChange, ) -> Self

Source

pub fn urgent_toggle(self, id: u64) -> Self

Source

pub fn urgent_set(self, id: u64) -> Self

Source

pub fn urgent_unset(self, id: u64) -> Self

Source

pub fn foc_wspace(self, r: WorkspaceReferenceArg) -> Self

Source

pub fn foc_wspace_prev(self) -> Self

Source

pub fn wspace_d(self) -> Self

Source

pub fn wspace_u(self) -> Self

Source

pub fn mv_wspace_d(self) -> Self

Source

pub fn mv_wspace_u(self) -> Self

Source

pub fn mv_wspace_idx(self, idx: usize, r: Option<WorkspaceReferenceArg>) -> Self

Source

pub fn mv_win_wspace( self, id: Option<u64>, r: WorkspaceReferenceArg, focus: bool, ) -> Self

Source

pub fn mv_win_wspace_d(self, focus: bool) -> Self

Source

pub fn mv_win_wspace_u(self, focus: bool) -> Self

Source

pub fn mv_col_wspace(self, r: WorkspaceReferenceArg, focus: bool) -> Self

Source

pub fn mv_col_wspace_d(self, focus: bool) -> Self

Source

pub fn mv_col_wspace_u(self, focus: bool) -> Self

Source

pub fn name_wspace(self, name: String, r: Option<WorkspaceReferenceArg>) -> Self

Source

pub fn unname_wspace(self, r: Option<WorkspaceReferenceArg>) -> Self

Source

pub fn monitor_l(self) -> Self

Source

pub fn monitor_r(self) -> Self

Source

pub fn monitor_u(self) -> Self

Source

pub fn monitor_d(self) -> Self

Source

pub fn monitor_prev(self) -> Self

Source

pub fn monitor_next(self) -> Self

Source

pub fn monitor_name(self, out: String) -> Self

Source

pub fn monitors_off(self) -> Self

Source

pub fn monitors_on(self) -> Self

Source

pub fn mv_win_mon(self, id: Option<u64>, out: String) -> Self

Source

pub fn mv_win_mon_l(self) -> Self

Source

pub fn mv_win_mon_r(self) -> Self

Source

pub fn mv_win_mon_u(self) -> Self

Source

pub fn mv_win_mon_d(self) -> Self

Source

pub fn mv_win_mon_prev(self) -> Self

Source

pub fn mv_win_mon_next(self) -> Self

Source

pub fn mv_col_mon(self, out: String) -> Self

Source

pub fn mv_col_mon_l(self) -> Self

Source

pub fn mv_col_mon_r(self) -> Self

Source

pub fn mv_col_mon_u(self) -> Self

Source

pub fn mv_col_mon_d(self) -> Self

Source

pub fn mv_col_mon_prev(self) -> Self

Source

pub fn mv_col_mon_next(self) -> Self

Source

pub fn mv_wspace_mon( self, out: String, r: Option<WorkspaceReferenceArg>, ) -> Self

Source

pub fn mv_wspace_mon_l(self) -> Self

Source

pub fn mv_wspace_mon_r(self) -> Self

Source

pub fn mv_wspace_mon_u(self) -> Self

Source

pub fn mv_wspace_mon_d(self) -> Self

Source

pub fn mv_wspace_mon_prev(self) -> Self

Source

pub fn mv_wspace_mon_next(self) -> Self

Source

pub fn snap(self, pointer: bool, path: Option<String>) -> Self

Source

pub fn snap_screen( self, disk: bool, pointer: bool, path: Option<String>, ) -> Self

Source

pub fn snap_win(self, id: Option<u64>, disk: bool, path: Option<String>) -> Self

Source

pub fn cast_win(self, id: Option<u64>) -> Self

Source

pub fn cast_mon(self, out: Option<String>) -> Self

Source

pub fn cast_clear(self) -> Self

Source

pub fn inhibit_shortcuts(self) -> Self

Source

pub fn transition(self, delay: Option<u16>) -> Self

Source

pub fn hotkeys(self) -> Self

Source

pub fn overview_toggle(self) -> Self

Source

pub fn overview_open(self) -> Self

Source

pub fn overview_close(self) -> Self

Source

pub fn dbg_tint(self) -> Self

Source

pub fn dbg_opaque(self) -> Self

Source

pub fn dbg_damage(self) -> Self

Auto Trait Implementations§

§

impl Freeze for Niri

§

impl RefUnwindSafe for Niri

§

impl Send for Niri

§

impl Sync for Niri

§

impl Unpin for Niri

§

impl UnwindSafe for Niri

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.