switched to waybar

This commit is contained in:
2025-07-23 22:16:59 -05:00
parent c4f24c33be
commit 4f7fcad7ad
7 changed files with 311 additions and 73 deletions

View File

@@ -6,16 +6,16 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
#monitor = HDMI-A-1, 3840x2160@60, 0x0, 1.5
monitor = HDMI-A-1, disable
monitor = HDMI-A-1, 3840x2160@60, 0x0, 1
#monitor = HDMI-A-1, disable
#monitor = sunshine, highres@highrr, 0x0, 1
monitor = DP-1, highres@highrr, 0x0, 1
#monitor = DP-1, highres@highrr, 0x0, 1, bitdepth, 10, cm, hdr, sdrsaturation, 1, sdrbrightness, 1
exec-once = hyprctl dispatch workspace 1
#exec-once = linux-wallpaperengine --screen-root HDMI-A-1 --silent --fps 60 3000562427
exec-once = hyprlock
# exec-once = waybar
exec-once = ashell
exec-once = waybar
# exec-once = ashell
exec-once = systemctl --user start hyprpolkitagent
exec-once = sunshine
# See https://wiki.hyprland.org/Configuring/Keywords/ for more

View File

@@ -6,8 +6,20 @@
stylix.targets.kitty.enable = true;
stylix.targets.hyprpaper.enable = true;
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
stylix.image = pkgs.fetchurl {
# blue aura house
/* stylix.image = pkgs.fetchurl {
url = "https://w.wallhaven.cc/full/1p/wallhaven-1py8lw.jpg";
hash = "sha256-smJTuprm8PVKWv56hfv9UMzDXkHm3R7O1ALaNpNYy3E=";
};*/
# coastal town
/*stylix.image = pkgs.fetchurl {
url = "https://w.wallhaven.cc/full/ex/wallhaven-ex8vml.jpg";
hash = "sha256-SNsauGNVU7p+FfZPJ97GQDz5roRfy82WbAuLmLl7iVs=";
};*/
stylix.image = pkgs.fetchurl {
url = "https://w.wallhaven.cc/full/5g/wallhaven-5g22q5.png";
hash = "sha256-snqkeQecU0opsBfIrnkl6aiV71hSCmqnZBAsibNG4w8=";
};
}

118
modules/waybar/waybar.nix Normal file
View File

@@ -0,0 +1,118 @@
{pkgs, lib,...}:
{
programs.waybar.enable = true;
programs.waybar.settings = [
{
layer = "top";
position = "top";
margin = "5, 5, 5, 5";
modules-left = [ "hyprland/workspaces"];
modules-center = [ "mpris" ];
modules-right = [ "cava" "clock" "network" "pulseaudio/slider" "tray" ];
cava = {
bars = 14;
bar_delimiter = 0;
format-icons = ["" "" "" "" "" "" "" ""];
};
network = {
format = "󱎔";
format-disconnected = "";
format-wifi = "({signalStrength}%) ";
};
mpris = {
format = "{dynamic}";
dynamic-order = ["title" "album" "artist" "position" "length"];
};
tray = {
spacing = 2;
};
"hyprland/workspaces" = {
active-only = false;
format = "{icon}";
format-icons = {
active = "";
default = "";
};
};
}
];
programs.waybar.style = lib.mkAfter ''
* {
font-family: "Roboto";
font-size: 17px;
border-radius: 10px;
}
window#waybar {
margin: 0 4px;
}
#network {
padding-left: 4px;
padding-right: 2px;
}
#tray {
margin-right: 5px;
margin-left: 5px;
}
#cava {
margin-left: 5px;
}
#mpris {
padding: 0 5px;
margin-left: 5px;
margin-right: 5px;
}
.modules-left {
background: @base02;
box-shadow: 0px 0px 5px 0px #101010;
}
.modules-center {
background: @base02;
box-shadow: 0px 0px 5px 0px #101010;
}
.modules-right {
background: @base02;
box-shadow: 0px 0px 5px 0px #101010;
}
window > box {
background-color: transparent;
margin-top: 5px;
margin-bottom: 5px;
margin-left: 5px;
margin-right: 5px;
}
#pulseaudio-slider slider {
min-height: 0px;
min-width: 0px;
}
#pulseaudio-slider trough {
min-width: 60px;
border-radius: 10px;
background-color: @base0D
}
#pulseaudio-slider highlight {
background-color: @base0C;
}
'';
}