1
0
Fork 0
forked from foxora/nix
This commit is contained in:
foxora 2026-02-12 18:53:24 +00:00
commit a07bd5fd9b
66 changed files with 6115 additions and 0 deletions

10
homes/modules/de/awww.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, inputs, lib, pkgs, ... }:
{
home.packages = with pkgs; [
(inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww.overrideAttrs (old: {
cargoBuildFlags = [ "--features=avif" ];
buildInputs = (old.buildInputs or []) ++ [ pkgs.dav1d ];
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ pkgs.pkg-config ];
}))
];
}

View file

@ -0,0 +1,20 @@
input-field {
monitor =
placeholder_text = Password...
size = 180, 42
position = 0, 80
outline_thickness = 2
#shadow_passes = 2
font_color = rgb($colorfg)
inner_color = rgb($colorbg)
outer_color = rgb($color11)
font_family = DepartureMono Nerd Font
dots_center = true
fade_on_empty = false
}

View file

@ -0,0 +1,41 @@
{ config, inputs, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
programs.hyprlock = {
enable = true;
# load the theme colors
extraConfig = ''
source = ./colors.conf
source = ./hyprlock/theme.conf
'';
settings = {
general = {
disable_loading_bar = true;
hide_cursor = true;
immediate_render = true;
};
background = [
{
monitor = "";
path = "screenshot";
blur_passes = 3;
blur_size = 4;
}
];
};
};
# extra hyprlock config for organisation
# writes ./hypr to ~/.config/hypr/hyprlock
xdg.configFile."hypr/hyprlock" = {
recursive = true;
source = ./hypr;
};
}

View file

@ -0,0 +1,17 @@
{ config, inputs, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
programs.rofi = {
enable = true;
font = "DepartureMono Nerd Font Mono 10";
theme = ./theme.rasi;
extraConfig = {
#kb-row-up = "Up,Control+k";
#kb-row-down = "Down,Control+j";
};
};
}

View file

View file

@ -0,0 +1,165 @@
@import "./colors.css";
* {
border: none;
border-radius: 0;
font-family: 'DepartureMono Nerd Font';
font-size: 10px;
font-weight: bold;
min-height: 10px;
}
window#waybar {
background: rgba(0, 0, 0, 0);
}
/*
adds a margin around the edge of the taskbar, surrounding the modules,
spacing it out from the edge of the screen and windows below
*/
window#waybar > box {
margin: 0px 12px;
}
tooltip {
background: @colorbg;
color: @colorfg;
opacity: 0.9;
padding: 4px;
border-radius: 12px;
border: 1px solid @color01;
}
tooltip label {
background: rgba(0, 0, 0, 0);
color: @colorfg;
}
#clock,
#memory,
#network,
#workspaces,
#taskbar,
#cpu,
#pulseaudio,
#privacy,
#tray,
#custom-media {
background: @colorbg;
color: @colorfg;
opacity: 0.9;
padding: 4px 16px;
border-radius: 32px;
border: 1px solid @color01;
}
/*
left-side modules
*/
#workspaces,
#taskbar,
#custom-media {
margin: 4px 4px 4px 0px;
}
/*
center modules
*/
#clock {
margin: 4px 0px 4px 0px;
}
/*
right-side modules
*/
#memory,
#network,
#cpu,
#pulseaudio,
#tray,
#privacy {
margin: 4px 0px 4px 4px;
}
#workspaces,
#taskbar {
padding: 0px;
}
#taskbar.empty {
opacity: 0;
padding: 0px;
margin: 0px;
border: none;
}
#tray.empty {
opacity: 0;
padding: 0;
margin: 0;
border: none;
}
/*
connects the workspace and taskbar together :3
*/
/*
#workspaces {
margin: 4px 0px 4px 12px;
padding: 0px 8px 0px 0px;
border-radius: 100px 0px 0px 100px;
border-width: 1px 0px 1px 1px;
}
#taskbar {
margin: 4px 0px 4px 0px;
padding: 0px 0px 0px 8px;
border-radius: 0px 100px 100px 0px;
}
*/
#cpu {
margin: 4px 0 4px 0;
border-radius: 32px 0px 0px 32px;
}
#memory {
margin: 4px 0 4px 0;
border-radius: 0px;
border-width: 1px 0px 1px 0px;
}
#network {
margin: 4px 0 4px 0;
border-radius: 0px 32px 32px 0px;
}
#workspaces button {
padding: 2px 4px;
border-radius: 32px;
color: @colorfg;
}
#workspaces button:hover {
background: @colorfg;
color: @colorbg;
opacity: 0.8;
}
#workspaces button.active {
background: @colorfg;
color: @colorbg;
}
#taskbar button {
padding: 2px 4px;
border-radius: 32px;
color: @colorfg;
}
#taskbar button:hover {
background: @colorfg;
color: @colorbg;
opacity: 0.8;
}
#taskbar button.active {
background: @colorfg;
color: @colorbg;
}
/*
icons in each button on the taskbar to correct
for them not being properly centred sometimes :3
*/
#taskbar button box image {
padding-left: 2px;
}

View file

@ -0,0 +1,104 @@
{ config, inputs, lib, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
programs.waybar = {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 20;
modules-left = [ "hyprland/workspaces" "wlr/taskbar" "custom/media" ];
modules-center = [ "clock" ];
modules-right = [ "cpu" "memory" "network" "pulseaudio" "privacy" "tray" ];
# left
"hyprland/workspaces" = {
format = "{id}";
};
"wlr/taskbar" = {
format = "{icon}";
icon-size = 12;
};
"custom/media" = {
exec = "auroramedia";
return-type = "json";
escape = true;
restart-interval = 1;
};
# center
"clock" = {
format = "{:%Y %b %a %d %H:%M:%S}";
interval = 1;
tooltip = false;
};
# right
"cpu" = {
format = " {usage}%";
interval = 1;
};
"memory" = {
format = " {used:0.1f} / {total:0.1f} GiB";
interval = 1;
};
"network" = {
format = "{bandwidthUpBytes} {bandwidthDownBytes} {ifname}";
format-wifi = " {bandwidthUpBytes} {bandwidthDownBytes} ";
format-ethernet = "󰈀 {bandwidthUpBytes} {bandwidthDownBytes} ";
format-disconnected = "no internet ~ rawr! ~ x3"; # empty format hides module
interval = 1;
max-length = 32;
};
"pulseaudio" = {
format = "{icon} {volume}%";
format-muted = " {volume}%";
format-icons = {
default = [
""
""
""
];
};
"scroll-step" = 5;
};
"privacy" = {
icon-size = 12;
icon-spacing = 5;
transition-duration = 200;
modules = [
{
type = "screenshare";
tooltip = true;
tooltip-icon-size = 12;
}
{
type = "audio-in";
tooltip = true;
tooltip-icon-size = 12;
}
];
};
"tray" = {
icon-size = 12;
spacing = 10;
# fixes spotify not showing up when "close button should minimize the Spotify window" is false
show-passive-items = true;
};
# i only enable this for debugging of window rules lol
"hyprland/window" = {
format = "{class} | {title}";
};
};
};
style = pkgs.writeTextFile {
name = "waybar-style.css";
text = builtins.readFile ./style.css;
};
};
}