mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-05 20:41:04 +02:00
Merge branch 'master' into feat/networkmanager
This commit is contained in:
commit
9031438f56
42 changed files with 2378 additions and 383 deletions
|
@ -38,7 +38,7 @@ impl<'de> Deserialize<'de> for MonitorConfig {
|
|||
impl BarPosition {
|
||||
/// Gets the orientation the bar and widgets should use
|
||||
/// based on this position.
|
||||
pub fn get_orientation(self) -> Orientation {
|
||||
pub fn orientation(self) -> Orientation {
|
||||
if self == Self::Top || self == Self::Bottom {
|
||||
Orientation::Horizontal
|
||||
} else {
|
||||
|
|
|
@ -16,6 +16,8 @@ use crate::modules::launcher::LauncherModule;
|
|||
use crate::modules::music::MusicModule;
|
||||
#[cfg(feature = "networkmanager")]
|
||||
use crate::modules::networkmanager::NetworkmanagerModule;
|
||||
#[cfg(feature = "notifications")]
|
||||
use crate::modules::notifications::NotificationsModule;
|
||||
use crate::modules::script::ScriptModule;
|
||||
#[cfg(feature = "sys_info")]
|
||||
use crate::modules::sysinfo::SysInfoModule;
|
||||
|
@ -23,6 +25,8 @@ use crate::modules::sysinfo::SysInfoModule;
|
|||
use crate::modules::tray::TrayModule;
|
||||
#[cfg(feature = "upower")]
|
||||
use crate::modules::upower::UpowerModule;
|
||||
#[cfg(feature = "volume")]
|
||||
use crate::modules::volume::VolumeModule;
|
||||
#[cfg(feature = "workspaces")]
|
||||
use crate::modules::workspaces::WorkspacesModule;
|
||||
use cfg_if::cfg_if;
|
||||
|
@ -49,6 +53,8 @@ pub enum ModuleConfig {
|
|||
Music(Box<MusicModule>),
|
||||
#[cfg(feature = "networkmanager")]
|
||||
Networkmanager(Box<NetworkmanagerModule>),
|
||||
#[cfg(feature = "notifications")]
|
||||
Notifications(Box<NotificationsModule>),
|
||||
Script(Box<ScriptModule>),
|
||||
#[cfg(feature = "sys_info")]
|
||||
SysInfo(Box<SysInfoModule>),
|
||||
|
@ -56,6 +62,8 @@ pub enum ModuleConfig {
|
|||
Tray(Box<TrayModule>),
|
||||
#[cfg(feature = "upower")]
|
||||
Upower(Box<UpowerModule>),
|
||||
#[cfg(feature = "volume")]
|
||||
Volume(Box<VolumeModule>),
|
||||
#[cfg(feature = "workspaces")]
|
||||
Workspaces(Box<WorkspacesModule>),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue