Add home manager
This commit is contained in:
67
home/wm/waybar.nix
Normal file
67
home/wm/waybar.nix
Normal file
@@ -0,0 +1,67 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
|
||||
style = builtins.readFile ./waybar/waybar-style.css;
|
||||
|
||||
settings.mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 30;
|
||||
|
||||
modules-left = [
|
||||
"hyprland/workspaces"
|
||||
"mpris"
|
||||
];
|
||||
|
||||
modules-center = [
|
||||
"wlr/taskbar"
|
||||
];
|
||||
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
"cpu"
|
||||
"tray"
|
||||
"clock"
|
||||
];
|
||||
|
||||
pulseaudio = {
|
||||
format = "{icon} {volume}%";
|
||||
format-muted = " muted";
|
||||
tooltip = false;
|
||||
|
||||
scroll-step = 5;
|
||||
|
||||
format-icons = {
|
||||
default = [ "" "" "" ];
|
||||
};
|
||||
|
||||
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
};
|
||||
|
||||
mpris = {
|
||||
player = "spotify";
|
||||
format = "{player_icon} {artist} - {title}";
|
||||
format-paused = "{player_icon} ⏸ {title}";
|
||||
tooltip = true;
|
||||
ignored-players = [ "firefox" "vlc" ];
|
||||
};
|
||||
|
||||
cpu = {
|
||||
format = " {usage}%";
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
clock = {
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
"wlr/taskbar" = {
|
||||
format = "{icon} {name}";
|
||||
on-click = "activate";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user