new waybar style

This commit is contained in:
lucy 2025-12-08 16:03:46 +01:00
parent 35cef3a145
commit 1577ce4a23
7 changed files with 208 additions and 72 deletions

View File

@ -135,7 +135,15 @@
openssl openssl
fastfetch fastfetch
polkit_gnome polkit_gnome
gcc
blueman
]; ];
programs.steam = {
enable = true;
extraCompatPackages = with pkgs; [ proton-ge-bin ];
};
programs.git.enable = true; programs.git.enable = true;
systemd.user.services.polkit-gnome-authentication-agent-1 = { systemd.user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1"; description = "polkit-gnome-authentication-agent-1";

View File

@ -18,6 +18,10 @@
# want to update the value, then make sure to first check the Home Manager # want to update the value, then make sure to first check the Home Manager
# release notes. # release notes.
programs.bash.enable = true; programs.bash.enable = true;
programs.bash.bashrcExtra = ''
"fastfetch"
'';
home.stateVersion = "24.05"; # Please read the comment before changing. home.stateVersion = "24.05"; # Please read the comment before changing.
home.shell.enableShellIntegration = true; home.shell.enableShellIntegration = true;
home.shellAliases = { home.shellAliases = {

View File

@ -12,10 +12,14 @@
servers = { servers = {
bashls.enable = true; bashls.enable = true;
clangd = { clangd.package = null;
package = null; clangd.enable = true;
enable = true; clangd.cmd = [
}; "clangd"
"--background-index"
"--query-driver=${pkgs.clang}/bin/clang++"
"--query-driver=${pkgs.clang}/bin/clang"
];
nixd.enable = true; nixd.enable = true;
}; };
}; };

View File

@ -22,12 +22,25 @@
{ {
type = "text"; type = "text";
val = [ val = [
" " ""
" " ""
" " ""
" " ""
" " ""
" " ""
""
""
""
""
""
""
""
""
""
""
""
""
""
]; ];
opts = { opts = {
position = "center"; position = "center";
@ -43,7 +56,7 @@
val = [ val = [
{ {
type = "button"; type = "button";
val = " new file"; val = " new file ";
on_press.__raw = "function() vim.cmd[[ene]] end"; on_press.__raw = "function() vim.cmd[[ene]] end";
opts = { opts = {
position = "center"; position = "center";
@ -56,7 +69,7 @@
} }
{ {
type = "button"; type = "button";
val = " search files"; val = " search files ";
on_press.__raw = "function() vim.cmd[[Telescope find_files]] end"; on_press.__raw = "function() vim.cmd[[Telescope find_files]] end";
opts = { opts = {
position = "center"; position = "center";
@ -69,7 +82,7 @@
} }
{ {
type = "button"; type = "button";
val = " live grep"; val = " live grep ";
on_press.__raw = "function() vim.cmd[[Telescope live_grep]] end"; on_press.__raw = "function() vim.cmd[[Telescope live_grep]] end";
opts = { opts = {
position = "center"; position = "center";
@ -82,7 +95,7 @@
} }
{ {
type = "button"; type = "button";
val = " quit neovim"; val = " quit neovim ";
on_press.__raw = "function() vim.cmd[[qa]] end"; on_press.__raw = "function() vim.cmd[[qa]] end";
opts = { opts = {
position = "center"; position = "center";
@ -104,7 +117,11 @@
settings = { settings = {
pickers = { pickers = {
find_files = { find_files = {
find_command = [ "fd" "--unrestricted" "--no-ignore" ]; find_command = [
"fd"
"--unrestricted"
"--no-ignore"
];
}; };
}; };
defaults = { defaults = {
@ -118,7 +135,6 @@
}; };
}; };
lualine = { lualine = {
enable = true; enable = true;
settings = { settings = {
@ -138,14 +154,16 @@
lualine_a = [ "mode" ]; lualine_a = [ "mode" ];
lualine_b = [ "branch" ]; lualine_b = [ "branch" ];
lualine_c = [ "filename" ]; lualine_c = [ "filename" ];
lualine_x = [ "diagnostics" "filetype" ]; lualine_x = [
"diagnostics"
"filetype"
];
lualine_y = [ "progress" ]; lualine_y = [ "progress" ];
lualine_z = [ "location" ]; lualine_z = [ "location" ];
}; };
}; };
}; };
bufferline.enable = true; bufferline.enable = true;
web-devicons.enable = true; web-devicons.enable = true;
}; };

View File

@ -18,8 +18,6 @@
dconf dconf
fd fd
ripgrep ripgrep
gnumake
stlink
]; ];
programs.git = { programs.git = {
enable = true; enable = true;
@ -30,6 +28,104 @@
}; };
programs.spicetify.enable = true; programs.spicetify.enable = true;
programs.fastfetch = {
enable = true;
settings = {
logo = {
source = "~/.config/fastfetch/logo.txt";
};
display = {
separator = " ";
};
modules = [
{
type = "title";
key = "User";
}
{
type = "custom";
text = "";
}
{
type = "os";
key = "OS";
}
{
type = "custom";
text = "";
}
{
type = "kernel";
key = "Kernel";
}
{
type = "custom";
text = "";
}
{
type = "packages";
key = "Packages";
}
{
type = "custom";
text = "";
}
{
type = "cpu";
key = "CPU";
}
{
type = "custom";
text = "";
}
{
type = "gpu";
key = "GPU";
}
{
type = "custom";
text = "";
}
{
type = "memory";
key = "Memory";
}
{
type = "custom";
text = "";
}
{
type = "disk";
key = "Disk";
}
{
type = "custom";
text = "";
}
{
type = "display";
key = "Resolution";
}
{
type = "custom";
text = "";
}
{
type = "shell";
key = "Shell";
}
];
};
};
programs.foot = { programs.foot = {
enable = true; enable = true;

View File

@ -12,7 +12,7 @@
} }
window#waybar { window#waybar {
background-color: transparent; background-color: @base00;
} }
@ -26,8 +26,7 @@
#workspaces button.active { #workspaces button.active {
color: @base00; color: @base05;
background-color: @base05;
} }
#workspaces { #workspaces {
@ -45,28 +44,28 @@
#clock, #clock,
#power-profiles-daemon { #power-profiles-daemon {
margin: 0px; margin: 0px;
padding: 2px 14px; padding: 2px 2px;
border-radius: 1em; border-radius: 1em;
background-color: @base00; background-color: @base00;
color: @base05; color: @base05;
} }
#tray { #tray {
padding: 0px 6px 0px 6px; padding: 0px 8px 0px 4px;
} }
window#waybar.empty #window { window#waybar.empty #window {
background: none; background: none;
} }
#custom-sep {
color: alpha(@base05, 0.5);
}
''; '';
settings = { settings = {
mainBar = { mainBar = {
layer = "top"; layer = "top";
position = "top"; position = "top";
margin-top = 5; spacing = 0;
margin-right = 5;
margin-left = 5;
spacing = 5;
modules-left = [ modules-left = [
"hyprland/workspaces" "hyprland/workspaces"
"hyprland/window" "hyprland/window"
@ -74,13 +73,20 @@
]; ];
modules-right = [ modules-right = [
"backlight" "backlight"
"custom/sep"
"pulseaudio" "pulseaudio"
"custom/sep"
"upower" "upower"
"custom/sep"
"power-profiles-daemon" "power-profiles-daemon"
"custom/sep"
"clock" "clock"
"custom/sep"
"tray" "tray"
]; ];
"custom/sep" = {
format = " | ";
};
"mpris" = { "mpris" = {
player = "spotify"; player = "spotify";
format = "{title} - {artist}"; format = "{title} - {artist}";

View File

@ -23,7 +23,7 @@
stylix = { stylix = {
enable = true; enable = true;
autoEnable = true; autoEnable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-material-dark-hard.yaml";
polarity = "dark"; polarity = "dark";
image = ./home/wallpaper.png; image = ./home/wallpaper.png;
fonts = { fonts = {