feat: hyprland improvements

This commit is contained in:
2023-12-26 14:24:08 +01:00
parent a395181f3b
commit 4e301a71c7
3 changed files with 77 additions and 76 deletions

View File

@@ -0,0 +1,59 @@
{pkgs}: {
enable = true;
config = {
plugins = with pkgs.anyrunPlugins; [
applications
symbols
rink
dictionary
shell
];
y.fraction = 0.2;
closeOnClick = true;
};
extraCss =
/*
css
*/
''
* {
font-family: "NotoSans NF";
}
window#window {
background: transparent;
}
box#main {
background: rgba(48, 52, 70, 0.4);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.29);
border-radius: 24px;
}
entry#entry {
border: none;
box-shadow: none;
padding: 8px 24px;
}
entry#entry,
list#main {
border-radius: 24px;
background: transparent;
}
row#match {
border-radius: 8px;
padding: 0 4px;
}
row#plugin {
border-radius: 16px;
padding: 16px;
}
list#plugin {
background: transparent;
}
'';
}

View File

@@ -157,66 +157,8 @@
configDir = ./ags; configDir = ./ags;
}; };
programs.kitty = import ./kitty.nix {inherit pkgs;}; programs.kitty = import ./kitty.nix {inherit pkgs;};
programs.anyrun = { programs.anyrun = import ./anyrun.nix {inherit pkgs;};
enable = true; programs.waybar = import ./waybar.nix {inherit pkgs;};
config = {
plugins = with pkgs.anyrunPlugins; [
applications
symbols
rink
dictionary
shell
];
y.fraction = 0.2;
closeOnClick = true;
};
extraCss =
/*
css
*/
''
* {
font-family: "NotoSans NF";
}
window#window {
background: transparent;
}
box#main {
background: rgba(48, 52, 70, 0.4);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.29);
border-radius: 24px;
}
entry#entry {
border: none;
box-shadow: none;
padding: 8px 24px;
}
entry#entry,
list#main {
border-radius: 24px;
background: transparent;
}
row#match {
border-radius: 8px;
padding: 0 4px;
}
row#plugin {
border-radius: 16px;
padding: 16px;
}
list#plugin {
background: transparent;
}
'';
};
services.udiskie.enable = true; services.udiskie.enable = true;
services.udiskie.tray = "never"; services.udiskie.tray = "never";

View File

@@ -1,20 +1,16 @@
{ {pkgs}: {
enable = true; enable = true;
settings = { settings = {
mainBar = { mainBar = {
layer = "top"; layer = "top";
position = "top"; position = "left";
height = 48; width = 16;
output = "HDMI-A-1"; modules-left = ["hyprland/workspaces"];
modules-left = ["wlr/workspaces"]; modules-center = ["clock"];
modules-center = ["wlr/taskbar"]; modules-right = ["custom/weather"];
modules-right = ["custom/weather" "clock"];
"wlr/taskbar" = { "clock" = {
all-outputs = true; format = "<b>{%H}</b>\n{%M}";
format = "{icon}";
icon-size = 32;
on-click = "activate";
}; };
"custom/weather" = { "custom/weather" = {
@@ -25,12 +21,16 @@
return-type = "json"; return-type = "json";
}; };
"wlr/workspaces" = { "hyprland/workspaces" = {
all-outputs = true; format = "{windows}";
format = "<sub>{icon}</sub>\n{windows}";
format-window-separator = "\n"; format-window-separator = "\n";
window-rewrite = { window-rewrite = {
"(.*) Mozilla Firefox" = ""; "title<.*youtube.*>" = "";
"class<firefox>" = "";
"title<nvim.*>" = "";
"class<kitty>" = "";
"class<VencordDesktop>" = "󰙯";
"class<org.gnome.Nautilus>" = "󰝰";
}; };
}; };
}; };