set up kde for enoko

This commit is contained in:
insects 2024-08-18 22:41:55 +02:00
parent a0be378e79
commit 50ae1f3d3f
10 changed files with 52 additions and 33 deletions

View file

@ -0,0 +1,30 @@
{ pkgs, ... }: {
imports = [
./mako.nix
./wofi.nix
./waybar.nix
];
home.packages = with pkgs; [
wf-recorder
wl-clipboard
vesktop
xdg-utils
nautilus
adwaita-icon-theme
];
programs.imv.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-wlr ];
config = {
common = {
default = [
"wlr"
];
};
};
};
}

View file

@ -0,0 +1,13 @@
{ config, lib, ... }: {
services.mako = {
enable = true;
font = lib.mkForce "${config.fontProfiles.regular.family} 12";
padding = "10,20";
anchor = "top-center";
width = 400;
height = 150;
borderSize = 1;
defaultTimeout = 12000;
layer = "overlay";
};
}

View file

@ -0,0 +1,133 @@
{ config, pkgs, ... }: {
# additional deps for cava support
home.packages = with pkgs; [
iniparser
fftw
];
systemd.user.services.waybar = {
Unit.StartLimitBurst = 30;
# this fixes fonts for some reason
Service.Environment = "PATH=${config.home.profileDirectory}/bin";
};
programs.waybar = {
enable = true;
systemd.enable = true;
settings = {
primary = {
height = 30;
position = "top";
margin-top = 10;
margin-left = 20;
margin-right = 20;
modules-left = [
"hyprland/workspaces"
"hyprland/language"
];
modules-center = [
"cpu"
"clock"
"memory"
];
modules-right = [
"mpris"
"network"
"pulseaudio"
"battery"
"tray"
];
cpu = {
format = "CPU {usage}%";
};
memory = {
format = "MEM {}%";
};
tray = {
spacing = 10;
};
pulseaudio = {
format = "AUD {volume}%";
};
network = {
format = "NET {ipaddr}";
format-disconnected = "NET X";
};
mpris = {
format = "{dynamic}";
interval = 1;
};
"hyprland/language" = {
format = "KBD {}";
format-en = "EN";
format-de = "DE";
};
};
};
style = let
inherit (config.lib.stylix.colors) withHashtag;
in ''
* {
font-family: ${config.fontProfiles.bitmap.family}, ${config.fontProfiles.monospace.family};
font-size: 11pt;
padding: 0;
}
window#waybar {
padding: 0;
border-radius: 0.5em;
}
#workspaces {
transition: background-color .5s, color .5s;
}
#workspaces button {
padding: 0 6px;
}
#workspaces button.active,
#workspaces button.focused {
background-color: ${withHashtag.base05};
color: ${withHashtag.base00};
}
#cpu,
#memory {
color: ${withHashtag.base04};
}
#mpris {
font-size: 10pt;
margin-right: 6px;
}
#tray {
padding: 0 5px;
background-color: ${withHashtag.base02};
}
#pulseaudio {
color: ${withHashtag.base0D};
}
#network {
color: ${withHashtag.base0C};
}
#language {
color: ${withHashtag.base02};
margin-left: 10px;
}
'';
};
}

View file

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }: {
programs.wofi = {
enable = true;
settings = {
insensitive = true;
allow_markup = true;
run-always_parse_args = true;
run-cache_file = "/dev/null";
run-exec_search = true;
matching = "multi-contains";
};
style = ''
#window {
border: 1px solid ${config.lib.stylix.colors.withHashtag.base05};
font-family: ${config.fontProfiles.bitmap.family};
}
#input {
border-radius: 0;
border: 1px solid ${config.lib.stylix.colors.withHashtag.base05};
border-bottom: 0;
}
'';
};
}