mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Finish
This commit is contained in:
parent
9fa7bfc0cb
commit
3c2fa1625d
@ -257,6 +257,10 @@ else
|
|||||||
src_files += 'src/modules/simpleclock.cpp'
|
src_files += 'src/modules/simpleclock.cpp'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('experimental')
|
||||||
|
add_project_arguments('-DUSE_EXPERIMENTAL', language: 'cpp')
|
||||||
|
endif
|
||||||
|
|
||||||
subdir('protocol')
|
subdir('protocol')
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
@ -383,3 +387,4 @@ if clangtidy.found()
|
|||||||
'-p', meson.build_root()
|
'-p', meson.build_root()
|
||||||
] + src_files)
|
] + src_files)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -11,3 +11,4 @@ option('gtk-layer-shell', type: 'feature', value: 'auto', description: 'Use gtk-
|
|||||||
option('rfkill', type: 'feature', value: 'auto', description: 'Enable support for RFKILL')
|
option('rfkill', type: 'feature', value: 'auto', description: 'Enable support for RFKILL')
|
||||||
option('sndio', type: 'feature', value: 'auto', description: 'Enable support for sndio')
|
option('sndio', type: 'feature', value: 'auto', description: 'Enable support for sndio')
|
||||||
option('tests', type: 'feature', value: 'auto', description: 'Enable tests')
|
option('tests', type: 'feature', value: 'auto', description: 'Enable tests')
|
||||||
|
option('experimental', type : 'boolean', value : false, description: 'Enable experimental features')
|
||||||
|
@ -27,11 +27,14 @@ client_protocols = [
|
|||||||
[wl_protocol_dir, 'unstable/idle-inhibit/idle-inhibit-unstable-v1.xml'],
|
[wl_protocol_dir, 'unstable/idle-inhibit/idle-inhibit-unstable-v1.xml'],
|
||||||
['wlr-layer-shell-unstable-v1.xml'],
|
['wlr-layer-shell-unstable-v1.xml'],
|
||||||
['wlr-foreign-toplevel-management-unstable-v1.xml'],
|
['wlr-foreign-toplevel-management-unstable-v1.xml'],
|
||||||
['ext-workspace-unstable-v1.xml'],
|
|
||||||
['river-status-unstable-v1.xml'],
|
['river-status-unstable-v1.xml'],
|
||||||
['river-control-unstable-v1.xml'],
|
['river-control-unstable-v1.xml'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if get_option('experimental')
|
||||||
|
client_protocols += ['ext-workspace-unstable-v1.xml']
|
||||||
|
endif
|
||||||
|
|
||||||
client_protos_src = []
|
client_protos_src = []
|
||||||
client_protos_headers = []
|
client_protos_headers = []
|
||||||
|
|
||||||
|
@ -30,10 +30,12 @@ waybar::AModule* waybar::Factory::makeModule(const std::string& name) const {
|
|||||||
if (ref == "wlr/taskbar") {
|
if (ref == "wlr/taskbar") {
|
||||||
return new waybar::modules::wlr::Taskbar(id, bar_, config_[name]);
|
return new waybar::modules::wlr::Taskbar(id, bar_, config_[name]);
|
||||||
}
|
}
|
||||||
|
#ifdef USE_EXPERIMENTAL
|
||||||
if (ref == "wlr/workspaces") {
|
if (ref == "wlr/workspaces") {
|
||||||
return new waybar::modules::wlr::WorkspaceManager(id, bar_, config_[name]);
|
return new waybar::modules::wlr::WorkspaceManager(id, bar_, config_[name]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef HAVE_RIVER
|
#ifdef HAVE_RIVER
|
||||||
if (ref == "river/tags") {
|
if (ref == "river/tags") {
|
||||||
return new waybar::modules::river::Tags(id, bar_, config_[name]);
|
return new waybar::modules::river::Tags(id, bar_, config_[name]);
|
||||||
|
Loading…
Reference in New Issue
Block a user