forked from mirrors_public/oddlama_nix-config
chore: add button to waybar for future wallpaper change
This commit is contained in:
parent
30a851a7c1
commit
237c23e266
2 changed files with 35 additions and 12 deletions
|
@ -25,8 +25,9 @@ button {
|
||||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||||
#clock:hover,
|
#clock:hover,
|
||||||
#custom-notification:hover,
|
#custom-notification:hover,
|
||||||
#custom-pickcolor:hover,
|
#custom-pick_color:hover,
|
||||||
#custom-scanqr:hover,
|
#custom-scan_qr:hover,
|
||||||
|
#custom-cycle_wallpaper:hover,
|
||||||
#wireplumber:hover,
|
#wireplumber:hover,
|
||||||
#pulseaudio:hover,
|
#pulseaudio:hover,
|
||||||
button:hover {
|
button:hover {
|
||||||
|
@ -39,8 +40,9 @@ button:hover {
|
||||||
#clock,
|
#clock,
|
||||||
#cpu,
|
#cpu,
|
||||||
#custom-notification,
|
#custom-notification,
|
||||||
#custom-pickcolor,
|
#custom-pick_color,
|
||||||
#custom-scanqr,
|
#custom-scan_qr,
|
||||||
|
#custom-cycle_wallpaper,
|
||||||
#disk,
|
#disk,
|
||||||
#idle_inhibitor,
|
#idle_inhibitor,
|
||||||
#memory,
|
#memory,
|
||||||
|
@ -60,8 +62,12 @@ button:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
#cpu,
|
#cpu,
|
||||||
#memory,
|
#memory {
|
||||||
#wireplumber {
|
min-width: 44px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wireplumber,
|
||||||
|
#pulseaudio {
|
||||||
min-width: 56px;
|
min-width: 56px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +139,11 @@ button:hover {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
#bluetooth.on {
|
||||||
|
box-shadow: inset 0 -2px alpha(#70a5eb, 0.4);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
#memory.critical,
|
#memory.critical,
|
||||||
#network.disconnected,
|
#network.disconnected,
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
}: {
|
}: {
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
style = builtins.readFile ./waybar-style.css;
|
style = builtins.readFile ./waybar-style.css;
|
||||||
settings.main = {
|
settings.main = {
|
||||||
layer = "top";
|
layer = "top";
|
||||||
|
@ -21,8 +22,9 @@
|
||||||
"hyprland/window"
|
"hyprland/window"
|
||||||
];
|
];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"custom/scanqr"
|
"custom/scan_qr"
|
||||||
"custom/pickcolor"
|
"custom/pick_color"
|
||||||
|
"custom/cycle_wallpaper"
|
||||||
#"custom/screencast"
|
#"custom/screencast"
|
||||||
#"custom/gpuscreenrecorder"
|
#"custom/gpuscreenrecorder"
|
||||||
|
|
||||||
|
@ -36,6 +38,7 @@
|
||||||
"bluetooth"
|
"bluetooth"
|
||||||
|
|
||||||
#"temps"
|
#"temps"
|
||||||
|
#"temperature"
|
||||||
"cpu"
|
"cpu"
|
||||||
"memory"
|
"memory"
|
||||||
#"battery"
|
#"battery"
|
||||||
|
@ -44,18 +47,27 @@
|
||||||
"clock"
|
"clock"
|
||||||
];
|
];
|
||||||
|
|
||||||
"custom/scanqr" = {
|
"custom/scan_qr" = {
|
||||||
tooltip = false;
|
tooltip = true;
|
||||||
|
tooltip-format = "Scan QR Code";
|
||||||
format = "";
|
format = "";
|
||||||
on-click = lib.getExe pkgs.scripts.screenshot-area-scan-qr;
|
on-click = lib.getExe pkgs.scripts.screenshot-area-scan-qr;
|
||||||
};
|
};
|
||||||
|
|
||||||
"custom/pickcolor" = {
|
"custom/pick_color" = {
|
||||||
tooltip = false;
|
tooltip = true;
|
||||||
|
tooltip-format = "Pick color";
|
||||||
format = "";
|
format = "";
|
||||||
on-click = "${lib.getExe pkgs.hyprpicker} --autocopy";
|
on-click = "${lib.getExe pkgs.hyprpicker} --autocopy";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"custom/cycle_wallpaper" = {
|
||||||
|
format = " ";
|
||||||
|
tooltip = true;
|
||||||
|
tooltip-format = "Change wallpaper";
|
||||||
|
on-click = "echo";
|
||||||
|
};
|
||||||
|
|
||||||
"custom/notification" = {
|
"custom/notification" = {
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
format = "{icon} {}";
|
format = "{icon} {}";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue