mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-17 05:05:06 +01:00
Compare commits
4 commits
571f0fb488
...
1a154850ce
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a154850ce | |||
| dc50568a2f | |||
| a8e832535a | |||
| dd025f248a |
3 changed files with 76 additions and 11 deletions
|
|
@ -157,7 +157,7 @@ layout {
|
||||||
// - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
|
// - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
|
||||||
|
|
||||||
// Color of the ring on the active monitor.
|
// Color of the ring on the active monitor.
|
||||||
active-color "#7fc8ff"
|
active-color "#db88c5"
|
||||||
|
|
||||||
// Color of the ring on inactive monitors.
|
// Color of the ring on inactive monitors.
|
||||||
inactive-color "#505050"
|
inactive-color "#505050"
|
||||||
|
|
@ -195,7 +195,7 @@ layout {
|
||||||
// You can enable drop shadows for windows.
|
// You can enable drop shadows for windows.
|
||||||
shadow {
|
shadow {
|
||||||
// Uncomment the next line to enable shadows.
|
// Uncomment the next line to enable shadows.
|
||||||
// on
|
on
|
||||||
|
|
||||||
// By default, the shadow draws only around its window, and not behind it.
|
// By default, the shadow draws only around its window, and not behind it.
|
||||||
// Uncomment this setting to make the shadow draw behind its window.
|
// Uncomment this setting to make the shadow draw behind its window.
|
||||||
|
|
@ -211,7 +211,7 @@ layout {
|
||||||
// window. These will also remove client-side shadows if the window
|
// window. These will also remove client-side shadows if the window
|
||||||
// draws any.
|
// draws any.
|
||||||
//
|
//
|
||||||
// draw-behind-window true
|
draw-behind-window true
|
||||||
|
|
||||||
// You can change how shadows look. The values below are in logical
|
// You can change how shadows look. The values below are in logical
|
||||||
// pixels and match the CSS box-shadow properties.
|
// pixels and match the CSS box-shadow properties.
|
||||||
|
|
@ -319,8 +319,8 @@ window-rule {
|
||||||
|
|
||||||
// Example: enable rounded corners for all windows.
|
// Example: enable rounded corners for all windows.
|
||||||
// (This example rule is commented out with a "/-" in front.)
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
/-window-rule {
|
window-rule {
|
||||||
geometry-corner-radius 12
|
geometry-corner-radius 8
|
||||||
clip-to-geometry true
|
clip-to-geometry true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,8 @@ in
|
||||||
};
|
};
|
||||||
services.gnome-keyring.enable = true;
|
services.gnome-keyring.enable = true;
|
||||||
|
|
||||||
|
services.playerctld.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
audacity
|
audacity
|
||||||
customPkgs.cargo-bisect-rustc
|
customPkgs.cargo-bisect-rustc
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,13 @@
|
||||||
builtins.toJSON {
|
builtins.toJSON {
|
||||||
height = 35;
|
height = 35;
|
||||||
spacing = 4;
|
spacing = 4;
|
||||||
modules-left = [ "systemd-failed-units" ];
|
|
||||||
|
modules-left = [
|
||||||
|
"systemd-failed-units"
|
||||||
|
"custom/music-back"
|
||||||
|
"mpris"
|
||||||
|
"custom/music-next"
|
||||||
|
];
|
||||||
modules-center = [
|
modules-center = [
|
||||||
"clock"
|
"clock"
|
||||||
];
|
];
|
||||||
|
|
@ -26,6 +32,25 @@
|
||||||
system = true; # Monitor failed systemwide units.
|
system = true; # Monitor failed systemwide units.
|
||||||
user = false; # Ignore failed user units.
|
user = false; # Ignore failed user units.
|
||||||
};
|
};
|
||||||
|
"custom/music-back" = {
|
||||||
|
format = "⏴";
|
||||||
|
tooltip = true;
|
||||||
|
tooltip-format = "Play previous song";
|
||||||
|
on-click = "${lib.getExe pkgs.playerctl} previous";
|
||||||
|
};
|
||||||
|
mpris = {
|
||||||
|
format = "{status_icon} {dynamic}";
|
||||||
|
dynamic-order = [ "title" "artist" ];
|
||||||
|
status-icons = {
|
||||||
|
paused = "⏸";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"custom/music-next" = {
|
||||||
|
format = "⏵";
|
||||||
|
tooltip = true;
|
||||||
|
tooltip-format = "Play next song";
|
||||||
|
on-click = "${lib.getExe pkgs.playerctl} next";
|
||||||
|
};
|
||||||
clock = {
|
clock = {
|
||||||
interval = 1;
|
interval = 1;
|
||||||
format = "{:%a %F %H:%M:%S}";
|
format = "{:%a %F %H:%M:%S}";
|
||||||
|
|
@ -124,18 +149,56 @@
|
||||||
text = ''
|
text = ''
|
||||||
${builtins.readFile ./default-waybar-style.css}
|
${builtins.readFile ./default-waybar-style.css}
|
||||||
|
|
||||||
#custom-power {
|
window#waybar {
|
||||||
padding-left: 15px;
|
background: linear-gradient(
|
||||||
padding-right: 15px;
|
to right,
|
||||||
background-color: rebeccapurple;
|
rgb(131, 80, 117) 15%,
|
||||||
|
rgb(158, 103, 143) 30%,
|
||||||
|
rgb(131, 80, 117) 45%,
|
||||||
|
#db88c5
|
||||||
|
);
|
||||||
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#systemd-failed-units {
|
#systemd-failed-units {
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
padding-right: 30px;
|
padding-right: 30px;
|
||||||
background-color: red;
|
background-color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#mpris {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-music-back, #custom-music-next {
|
||||||
|
font-size: 20px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-music-back {
|
||||||
|
padding: 0 10px 0 15px;
|
||||||
|
}
|
||||||
|
#custom-music-next {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
background: unset;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#privacy *, #pulseaudio, #cpu, #memory, #tray {
|
||||||
|
background-color: unset;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-power {
|
||||||
|
padding-left: 15px;
|
||||||
|
padding-right: 15px;
|
||||||
|
font-size: 30px;
|
||||||
|
background-color: rebeccapurple;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue