1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10: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

@ -25,8 +25,9 @@ button {
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#clock:hover,
#custom-notification:hover,
#custom-pickcolor:hover,
#custom-scanqr:hover,
#custom-pick_color:hover,
#custom-scan_qr:hover,
#custom-cycle_wallpaper:hover,
#wireplumber:hover,
#pulseaudio:hover,
button:hover {
@ -39,8 +40,9 @@ button:hover {
#clock,
#cpu,
#custom-notification,
#custom-pickcolor,
#custom-scanqr,
#custom-pick_color,
#custom-scan_qr,
#custom-cycle_wallpaper,
#disk,
#idle_inhibitor,
#memory,
@ -60,8 +62,12 @@ button:hover {
}
#cpu,
#memory,
#wireplumber {
#memory {
min-width: 44px;
}
#wireplumber,
#pulseaudio {
min-width: 56px;
}
@ -133,6 +139,11 @@ button:hover {
color: #000000;
}
/*
#bluetooth.on {
box-shadow: inset 0 -2px alpha(#70a5eb, 0.4);
}
*/
#memory.critical,
#network.disconnected,

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} {}";