-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
26 lines (20 loc) · 747 Bytes
/
main.cpp
File metadata and controls
26 lines (20 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <chrono>
#include <format>
#include <iostream>
#include <tuple>
#include <vector>
#include "color_manager.hpp"
#include "timer.hpp"
// #define TEST_IMAGE "/home/theo/.config/swww/Wallpapers/52481425_p0.png"
int main(int argc, char *argv[]) {
Timer timer("Total time : ", true);
if (argc < 2)
return EXIT_FAILURE;
// TIMEIT(ColorManager::update_colors(argv[1]));
auto [colors, variants] = TIMEIT(ColorManager::load_colors(argv[1]));
TIMEIT(ColorManager::update_waybar_colors(colors, variants));
TIMEIT(ColorManager::update_hyprland_colors(colors, variants, argv[1]));
TIMEIT(ColorManager::update_rofi_colors(colors, variants));
TIMEIT(ColorManager::update_dunst_colors(colors, variants));
return EXIT_SUCCESS;
}