mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(workspaces): icons
This commit is contained in:
@ -11,16 +11,18 @@ namespace waybar::modules {
|
||||
|
||||
class Workspaces : public IModule {
|
||||
public:
|
||||
Workspaces(waybar::Bar &bar);
|
||||
Workspaces(waybar::Bar &bar, Json::Value config);
|
||||
auto update() -> void;
|
||||
operator Gtk::Widget &();
|
||||
private:
|
||||
void _addWorkspace(Json::Value node);
|
||||
std::string _getIcon(std::string name);
|
||||
Json::Value _getWorkspaces(const std::string data);
|
||||
bool _handleScroll(GdkEventScroll *e);
|
||||
int _getPrevWorkspace();
|
||||
int _getNextWorkspace();
|
||||
Bar &_bar;
|
||||
Json::Value _config;
|
||||
waybar::util::SleeperThread _thread;
|
||||
Gtk::Box _box;
|
||||
util::JsonParser _parser;
|
||||
|
Reference in New Issue
Block a user