mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-04 23:02:48 +00:00
feat: hyprland improvements
This commit is contained in:
59
home/desktops/hyprland/anyrun.nix
Normal file
59
home/desktops/hyprland/anyrun.nix
Normal 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;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -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";
|
||||||
|
|
||||||
|
|||||||
@@ -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>" = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user