mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat: basic config file
This commit is contained in:
@ -6,12 +6,13 @@
|
||||
#include <iostream>
|
||||
#include <fmt/format.h>
|
||||
#include "util/chrono.hpp"
|
||||
#include "IModule.hpp"
|
||||
|
||||
namespace waybar::modules {
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
class Battery {
|
||||
class Battery : public IModule {
|
||||
public:
|
||||
Battery();
|
||||
auto update() -> void;
|
||||
|
@ -4,12 +4,14 @@
|
||||
#include <fmt/format.h>
|
||||
#include <thread>
|
||||
#include "util/chrono.hpp"
|
||||
#include "IModule.hpp"
|
||||
|
||||
namespace waybar::modules {
|
||||
|
||||
class Clock {
|
||||
class Clock : public IModule {
|
||||
public:
|
||||
Clock();
|
||||
auto update() -> void;
|
||||
operator Gtk::Widget &();
|
||||
private:
|
||||
Gtk::Label _label;
|
||||
|
@ -5,12 +5,14 @@
|
||||
#include <sys/sysinfo.h>
|
||||
#include <thread>
|
||||
#include "util/chrono.hpp"
|
||||
#include "IModule.hpp"
|
||||
|
||||
namespace waybar::modules {
|
||||
|
||||
class Cpu {
|
||||
class Cpu : public IModule {
|
||||
public:
|
||||
Cpu();
|
||||
auto update() -> void;
|
||||
operator Gtk::Widget &();
|
||||
private:
|
||||
Gtk::Label _label;
|
||||
|
@ -5,12 +5,14 @@
|
||||
#include <sys/sysinfo.h>
|
||||
#include <thread>
|
||||
#include "util/chrono.hpp"
|
||||
#include "IModule.hpp"
|
||||
|
||||
namespace waybar::modules {
|
||||
|
||||
class Memory {
|
||||
class Memory : public IModule {
|
||||
public:
|
||||
Memory();
|
||||
auto update() -> void;
|
||||
operator Gtk::Widget &();
|
||||
private:
|
||||
Gtk::Label _label;
|
||||
|
@ -1,16 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <json/json.h>
|
||||
#include <fmt/format.h>
|
||||
#include "bar.hpp"
|
||||
#include "client.hpp"
|
||||
#include "util/chrono.hpp"
|
||||
#include "IModule.hpp"
|
||||
|
||||
namespace waybar::modules {
|
||||
|
||||
class WorkspaceSelector {
|
||||
class Workspaces : public IModule {
|
||||
public:
|
||||
WorkspaceSelector(waybar::Bar &bar);
|
||||
Workspaces(waybar::Bar &bar);
|
||||
auto update() -> void;
|
||||
void updateThread();
|
||||
operator Gtk::Widget &();
|
||||
|
Reference in New Issue
Block a user