1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

chore: add button to waybar for future wallpaper change

This commit is contained in:
oddlama 2024-06-12 23:42:17 +02:00
parent 30a851a7c1
commit 237c23e266
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 35 additions and 12 deletions

View file

@ -5,6 +5,7 @@
}: {
programs.waybar = {
enable = true;
systemd.enable = true;
style = builtins.readFile ./waybar-style.css;
settings.main = {
layer = "top";
@ -21,8 +22,9 @@
"hyprland/window"
];
modules-right = [
"custom/scanqr"
"custom/pickcolor"
"custom/scan_qr"
"custom/pick_color"
"custom/cycle_wallpaper"
#"custom/screencast"
#"custom/gpuscreenrecorder"
@ -36,6 +38,7 @@
"bluetooth"
#"temps"
#"temperature"
"cpu"
"memory"
#"battery"
@ -44,18 +47,27 @@
"clock"
];
"custom/scanqr" = {
tooltip = false;
"custom/scan_qr" = {
tooltip = true;
tooltip-format = "Scan QR Code";
format = "󰐲";
on-click = lib.getExe pkgs.scripts.screenshot-area-scan-qr;
};
"custom/pickcolor" = {
tooltip = false;
"custom/pick_color" = {
tooltip = true;
tooltip-format = "Pick color";
format = "";
on-click = "${lib.getExe pkgs.hyprpicker} --autocopy";
};
"custom/cycle_wallpaper" = {
format = " ";
tooltip = true;
tooltip-format = "Change wallpaper";
on-click = "echo";
};
"custom/notification" = {
tooltip = false;
format = "{icon} {}";