refactor from 4 space tabs to 2

This commit is contained in:
willifan 2024-04-02 23:35:00 +02:00
parent 81503793b9
commit f46ab5cf14
3 changed files with 60 additions and 61 deletions

View file

@ -5,8 +5,6 @@
;; left ;; left
;; Test
(defwidget time [] (defwidget time []
(eventbox (eventbox
:onclick `` :onclick ``

View file

@ -30,24 +30,23 @@ const std::map<std::string, int> specialWorkspaceMap = {
/*json workspacesOutput = json::parse(R"( /*json workspacesOutput = json::parse(R"(
{ [
"normal": [ "normal":
{ {
"activeOn": str "activeOn": str
"icon": str "icon": str
"id": int "id": int
"occupied": int "occupied": int
} },
], "special":
"special": [ {
{
"activeOn": str "activeOn": str
"icon": str "icon": str
"id": str "id": str
"occupied": int "occupied": int
} }
] ]
}
)");*/ )");*/
@ -97,6 +96,8 @@ void generateIconMap()
initClass = "aguiienagi"; initClass = "aguiienagi";
} }
//TODO unjank
std::string cmd ="cd /home/willifan/.config/eww/scripts/ && ./test.sh "; std::string cmd ="cd /home/willifan/.config/eww/scripts/ && ./test.sh ";
std::string test = std::string("cd /home/willifan/.config/eww/scripts/ && ./test.sh ") + initClass + " " + pid; std::string test = std::string("cd /home/willifan/.config/eww/scripts/ && ./test.sh ") + initClass + " " + pid;
@ -149,7 +150,7 @@ json getWorkspace(json workspaceInput)
return workspaceOutput; return workspaceOutput;
} }
//TODO fix special workspaces
void getAllWorkspaces() void getAllWorkspaces()
{ {
json workspacesInput = json::parse(command("hyprctl workspaces -j")); json workspacesInput = json::parse(command("hyprctl workspaces -j"));
@ -179,7 +180,7 @@ void getAllWorkspaces()
} }
//TODO optimize whatever
void handle(std::string message) void handle(std::string message)

Binary file not shown.