update waybar qedo cheta

This commit is contained in:
Jose 2025-10-22 04:04:56 -03:00
parent b11828768c
commit 089ffc93ae
8 changed files with 367 additions and 14 deletions

View file

@ -98,7 +98,7 @@
users.users.jose = {
isNormalUser = true;
description = "jose";
extraGroups = [ "networkmanager" "wheel" "docker" ];
extraGroups = [ "networkmanager" "wheel" "docker" "audio"];
packages = with pkgs; [
thunderbird
vscode
@ -106,6 +106,8 @@
hplip
];
};
# Install firefox.
programs.firefox.enable = true;
@ -195,6 +197,16 @@
];
};
# Fonts configuration
fonts.packages = with pkgs; [
nerd-fonts.fira-code
nerd-fonts.jetbrains-mono
font-awesome
noto-fonts
noto-fonts-emoji
noto-fonts-cjk-sans
];
# Enable Flake
nix.settings.experimental-features = [ "nix-command" "flakes" ];

View file

@ -1 +0,0 @@
ola asdlahsdlasd

View file

@ -7,6 +7,7 @@
./user/kitty.nix
./user/vicinae.nix
./user/hyprland-home.nix
./user/waybar-home.nix
];
home.username = "jose";
@ -59,7 +60,7 @@
fonts.fontconfig.enable = true;
programs.git.settings = {
programs.git = {
enable = true;
userName = "Jose";
userEmail = "joseignaciolc52@gmail.com";

View file

@ -34,17 +34,8 @@
hyprpaper
hyprsunset
hyprpicker
waybar
brightnessctl
#FONTS
fira-code
fira-code-symbols
font-awesome
liberation_ttf
mplus-outline-fonts.githubRelease
noto-fonts
noto-fonts-emoji
proggyfonts
#waybar
brightnessctl
];
# polkit

View file

@ -17,4 +17,6 @@
#media-session.enable = true;
};
# environment.systemPackages = with pkgs; [
# ];
}

126
user/waybar-home.nix Normal file
View file

@ -0,0 +1,126 @@
{ pkgs, ... }: {
home.packages = with pkgs; [
pamixer
];
programs.waybar = {
enable = true;
style = builtins.readFile ../waybar/style.css;
settings = [{
layer = "top";
position = "top";
mod = "dock";
exclusive = true;
passtrough = false;
gtk-layer-shell = true;
height = 0;
modules-left = [
"hyprland/workspaces"
"custom/divider"
"custom/weather"
"custom/divider"
"cpu"
"custom/divider"
"memory"
];
modules-center = [ "hyprland/window" ];
modules-right = [
"tray"
"network"
"custom/divider"
"backlight"
"custom/divider"
"pulseaudio"
"custom/divider"
"pulseaudio#microphone"
"custom/divider"
"battery"
"custom/divider"
"clock"
];
"hyprland/window" = { format = "{}"; };
"wlr/workspaces" = {
on-scroll-up = "hyprctl dispatch workspace e+1";
on-scroll-down = "hyprctl dispatch workspace e-1";
all-outputs = true;
on-click = "activate";
};
battery = { format = "󰁹 {}%"; };
cpu = {
interval = 10;
format = "󰻠 {}%";
max-length = 10;
on-click = "";
};
memory = {
interval = 30;
format = " {}%";
format-alt = " {used:0.1f}G";
max-length = 10;
};
backlight = {
format = "󰖨 {}";
device = "acpi_video0";
};
"custom/weather" = {
tooltip = true;
format = "{}";
restart-interval = 300;
exec = "/home/roastbeefer/.cargo/bin/weather";
};
tray = {
icon-size = 13;
tooltip = false;
spacing = 10;
};
network = {
format = "󰖩 {essid}";
format-disconnected = "󰖪 disconnected";
};
clock = {
format = " {:%I:%M %p %m/%d} ";
tooltip-format = ''
<big>{:%Y %B}</big>
<tt><small>{calendar}</small></tt>'';
};
pulseaudio = {
format = "{icon} {volume}%";
tooltip = false;
format-muted = " Muted";
on-click = "pamixer -t";
on-scroll-up = "pamixer -i 5";
on-scroll-down = "pamixer -d 5";
scroll-step = 5;
format-icons = {
headphone = "";
hands-free = "";
headset = "";
phone = "";
portable = "";
car = "";
default = [ "" "" "" ];
};
};
"pulseaudio#microphone" = {
format = "{format_source}";
tooltip = false;
format-source = "🎤{volume}%";
format-source-muted = "🔇Muted";
on-click = "pamixer --default-source -t";
on-scroll-up = "pamixer --default-source -i 5";
on-scroll-down = "pamixer --default-source -d 5";
scroll-step = 5;
};
"custom/divider" = {
format = " | ";
interval = "once";
tooltip = false;
};
"custom/endright" = {
format = "_";
interval = "once";
tooltip = false;
};
}];
};
}

154
waybar/config.jsonc Normal file
View file

@ -0,0 +1,154 @@
{
"layer": "top",
"position": "top",
"mod": "dock",
"exclusive": true,
"passtrough": false,
"gtk-layer-shell": true,
"height": 0,
"modules-left": [
"hyprland/workspaces",
"custom/divider",
"custom/weather",
"custom/divider",
"cpu",
"custom/divider",
"memory"
],
"modules-center": [
"hyprland/window"
],
"modules-right": [
"tray",
// "custom/updates",
"network",
"custom/divider",
"backlight",
"custom/divider",
// "custom/language",
"pulseaudio",
"custom/divider",
"battery",
"custom/divider",
"clock"
// "pulseaudio#microphone"
],
"hyprland/window": {
"format": "{}"
},
"wlr/workspaces": {
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
"all-outputs": true,
"on-click": "activate",
// "format": "{icon}",
"persistent worksspaces": {
"1": [],
"2": [],
"3": [],
"4": []
}
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
// "active": "",
// "default": ""
// }
},
"battery": {
"format": "󰁹 {}%"
},
"cpu": {
"interval": 10,
"format": "󰻠 {}%",
"max-length": 10,
"on-click": ""
},
"memory": {
"interval": 30,
"format": "  {}%",
"format-alt": " {used:0.1f}G",
"max-length": 10
},
"custom/updates": {
"exec": "(paru -Qu) | wc -l",
"interval": 300,
"format": " {}"
},
// "custom/language": {
// "exec": "cat /tmp/kb_layout",
// "interval": 3,
// "format": " {}",
// "tooltip": false
// },
"backlight": {
"format": "󰖨 {}",
"device": "acpi_video0"
},
"custom/weather": {
"tooltip": true,
"format": "{}",
"restart-interval": 300,
"exec": "/home/roastbeefer/.cargo/bin/weather"
// "return-type" : "json"
},
"tray": {
"icon-size": 13,
"tooltip": false,
"spacing": 10
},
"network": {
"format": "󰖩 {essid}",
"format-disconnected": "󰖪 disconnected"
},
"format": " {:%I:%M %p  %m/%d} ",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"pulseaudio": {
"format": "{icon} {volume}%",
"tooltip": false,
"format-muted": " Muted",
"on-click": "pamixer -t",
"on-scroll-up": "pamixer -i 5",
"on-scroll-down": "pamixer -d 5",
"scroll-step": 5,
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": [
"",
"",
""
]
}
},
"pulseaudio#microphone": {
"format": "{format_source}",
"tooltip": false,
"format-source": " {volume}%",
"format-source-muted": " Muted",
"on-click": "pamixer --default-source -t",
"on-scroll-up": "pamixer --default-source -i 5",
"on-scroll-down": "pamixer --default-source -d 5",
"scroll-step": 5
},
"custom/divider": {
"format": " | ",
"interval": "once",
"tooltip": false
},
"custom/endright": {
"format": "_",
"interval": "once",
"tooltip": false
}
}

68
waybar/style.css Normal file
View file

@ -0,0 +1,68 @@
* {
border: none;
border-radius: 0;
font-family: Cartograph CF Nerd Font, monospace;
font-weight: bold;
font-size: 14px;
min-height: 0;
}
window#waybar {
background: rgba(21, 18, 27, 0);
color: #cdd6f4;
}
tooltip {}
#workspaces button {}
#workspaces button.active {
color: #9ccfd8;
}
#workspaces button.focused {
color: #9ccfd8;
}
#workspaces button.urgent {}
#workspaces button:hover {}
#custom-language,
#custom-updates,
#custom-caffeine,
#custom-weather,
#window,
#clock,
#battery,
#pulseaudio,
#network,
#workspaces,
#tray,
#backlight {}
#tray {}
#workspaces {}
#custom-caffeine {}
#custom-language {}
#custom-updates {}
#window {}
#clock {}
#network {}
#pulseaudio {}
#pulseaudio.microphone {}
#battery {}
#custom-weather {}
#custom-endright {}