made hyprland better
This commit is contained in:
parent
67c4b00b5d
commit
b483fee982
9 changed files with 244 additions and 170 deletions
|
@ -24,13 +24,72 @@ in {
|
|||
hideIcons = false;
|
||||
ignoreExclusiveZones = false;
|
||||
layer = "overlay";
|
||||
hidePluginInfo = false;
|
||||
hidePluginInfo = true;
|
||||
closeOnClick = true;
|
||||
showResultsImmediately = true;
|
||||
maxEntries = 50;
|
||||
width.fraction = 0.3;
|
||||
width.fraction = 0.5;
|
||||
y.absolute = 15;
|
||||
};
|
||||
|
||||
extraCss = ''
|
||||
@define-color bg-col rgba(30, 30, 46, 0.7);
|
||||
@define-color bg-col-light rgba(150, 220, 235, 0.7);
|
||||
@define-color border-col rgba(30, 30, 46, 0.7);
|
||||
@define-color selected-col rgba(150, 205, 251, 0.7);
|
||||
@define-color fg-col #D9E0EE;
|
||||
@define-color fg-col2 #F28FAD;
|
||||
|
||||
* {
|
||||
transition: 200ms ease;
|
||||
font-family: "JetBrainsMono Nerd Font";
|
||||
font-size: 1.0rem;
|
||||
}
|
||||
|
||||
#window {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#plugin,
|
||||
#main {
|
||||
border: 3px solid @border-col;
|
||||
color: @fg-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
/* anyrun's input window - Text */
|
||||
#entry {
|
||||
color: @fg-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
/* anyrun's ouput matches entries - Base */
|
||||
#match {
|
||||
color: @fg-col;
|
||||
background: @bg-col;
|
||||
}
|
||||
|
||||
/* anyrun's selected entry - Red */
|
||||
#match:selected {
|
||||
color: @fg-col2;
|
||||
background: @selected-col;
|
||||
}
|
||||
|
||||
#match {
|
||||
padding: 3px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
#entry, #plugin:hover {
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
box#main {
|
||||
background: rgba(30, 30, 46, 0.7);
|
||||
border: 1px solid @border-col;
|
||||
border-radius: 15px;
|
||||
padding: 5px;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -8,9 +8,6 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
stylix = {
|
||||
autoEnable = true;
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-soft.yaml";
|
||||
polarity = "dark";
|
||||
targets = {
|
||||
btop.enable = true;
|
||||
fish.enable = true;
|
||||
|
@ -26,35 +23,11 @@ in {
|
|||
hyprland.enable = true;
|
||||
|
||||
};
|
||||
opacity = {
|
||||
applications = 0.9;
|
||||
popups = 0.9;
|
||||
desktop = 0.9;
|
||||
};
|
||||
|
||||
fonts = {
|
||||
sizes = {
|
||||
terminal = 14;
|
||||
popups = 14;
|
||||
|
||||
};
|
||||
sansSerif = {
|
||||
package = pkgs.dejavu_fonts;
|
||||
name = "DejaVu Sans";
|
||||
};
|
||||
monospace = {
|
||||
package = (pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];});
|
||||
name = "JetBrainsMono";
|
||||
};
|
||||
emoji = {
|
||||
package = pkgs.noto-fonts-emoji;
|
||||
name = "Noto Color Emoji";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
stylix = {
|
||||
autoEnable = true;
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-soft.yaml";
|
||||
polarity = "dark";
|
||||
image = ../../hosts/vali/mars/2024-04-21-14-50.png;
|
||||
cursor = {
|
||||
|
@ -62,6 +35,31 @@ in {
|
|||
name = "Bibata-Modern-Classic";
|
||||
size = 24;
|
||||
};
|
||||
opacity = {
|
||||
applications = 0.7;
|
||||
popups = 0.7;
|
||||
desktop = 0.7;
|
||||
};
|
||||
fonts = {
|
||||
sizes = {
|
||||
terminal = 14;
|
||||
popups = 14;
|
||||
|
||||
};
|
||||
sansSerif = {
|
||||
package = pkgs.dejavu_fonts;
|
||||
name = "DejaVu Sans";
|
||||
};
|
||||
monospace = {
|
||||
package = (pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];});
|
||||
name = "JetBrainsMono";
|
||||
};
|
||||
emoji = {
|
||||
package = pkgs.noto-fonts-emoji;
|
||||
name = "Noto Color Emoji";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -267,7 +267,6 @@ in {
|
|||
theme = "https://raw.githubusercontent.com/shikijs/shiki/0b28ad8ccfbf2615f2d9d38ea8255416b8ac3043/packages/shiki/themes/dark-plus.json";
|
||||
tryHljs = "SECONDARY";
|
||||
uesDevIcon = "GREYSCALE";
|
||||
bgOpacity = 100;
|
||||
};
|
||||
ShowAllMessageButtons.enabled = true;
|
||||
ShowConnections = {
|
||||
|
|
|
@ -2,5 +2,6 @@ _: {
|
|||
imports = [
|
||||
./pipewire.nix
|
||||
./ssh.nix
|
||||
./greetd.nix
|
||||
];
|
||||
}
|
||||
|
|
46
modules/services/greetd.nix
Normal file
46
modules/services/greetd.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ config, inputs, lib, pkgs, ... }:
|
||||
with lib; let
|
||||
cfg = config.modules.services.greetd;
|
||||
inherit (config.modules.other.system) username;
|
||||
|
||||
hyprlandConfig = pkgs.writeText "greetd-hyprland-config" ''
|
||||
misc {
|
||||
force_default_wallpaper=0
|
||||
focus_on_activate=1
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled=0
|
||||
first_launch_animation=0
|
||||
}
|
||||
|
||||
workspace=1,default:true,gapsout:0,gapsin:0,border:false,decorate:false
|
||||
|
||||
#exec-once=[workspace 1;fullscreen;noanim] ${pkgs.greetd.${cfg.greeter}}/bin/${cfg.greeter} -l; ${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/hyprctl dispatch exit
|
||||
#exec-once=${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/hyprctl dispatch focuswindow ${cfg.greeter}
|
||||
'';
|
||||
in {
|
||||
options.modules.services.greetd = {
|
||||
enable = mkEnableOption "greetd";
|
||||
greeter = mkOption {
|
||||
description = "greetd frontend to use";
|
||||
type = types.str;
|
||||
};
|
||||
launchOptions = mkOption {
|
||||
description = "/etc/greetd/environments as list of strings";
|
||||
type = with types; listOf str;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings.default_session = {
|
||||
command = "${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/Hyprland --config ${hyprlandConfig}";
|
||||
user = username;
|
||||
};
|
||||
};
|
||||
|
||||
environment.etc."greetd/environments".text = concatStringsSep "\n" cfg.launchOptions;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue