This commit is contained in:
zoe 2023-03-01 22:31:03 +01:00
parent d0b7f9f8fb
commit 70bcd2a516
6 changed files with 63 additions and 21 deletions

View File

@ -1,6 +1,6 @@
[default]
# The color of the notification background in format: rgba([0, 255], [0, 255], [0, 255], [0, 1]).
background = rgba(48, 52, 70, 0.95)
background = rgba(48, 52, 70, 0.8)
# Sets the color of the notification border in format rgba([0, 255], [0, 255], [0, 255], [0, 1]).
border-color = rgba(166, 209, 137, 1.0)
@ -10,4 +10,4 @@ bar-fg-color = rgba(166, 200, 190, 1.0)
# The color of the unfilled bar blocks in format rgba([0, 255], [0, 255], [0, 255], [0, 1]).
# Defaults to 'background' with 2/3 brightness.
bar-bg-color = rgba(129, 200, 190, 1.0)
bar-bg-color = rgba(198, 208, 245, 0.8)

View File

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ pkgs, ... }: {
{ pkgs, hyprland, ... }: {
imports = [
<home-manager/nixos>
./hardware-configuration.nix
@ -16,7 +16,9 @@
];
nix.settings = {
substituters = [ "https://hyprland.cachix.org" ];
substituters = [
"https://hyprland.cachix.org"
];
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
};

View File

@ -7,7 +7,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, hyprland, home-manager }: {
outputs = { self, nixpkgs, hyprland, home-manager }@inputs: {
nixosConfigurations.bat = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
@ -15,11 +15,11 @@
hyprland.nixosModules.default
{ programs.hyprland.enable = true; }
];
specialArgs = inputs;
};
homeConfigurations."zoe@bat" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [];
modules = [ ];
};
};
}

View File

@ -2,6 +2,7 @@
{
services = {
syncthing.enable = true;
upower.enable = true;
mullvad-vpn.enable = true;
udisks2.enable = true;
gnome.sushi.enable = true;

View File

@ -1,4 +1,4 @@
{ pkgs, users, config, ... }:
{ pkgs, users, config, inputs, ... }:
let
unstable = import
(builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/master)
@ -57,7 +57,6 @@ in
wl-clipboard
wofi
wofi-emoji
unstable.waybar
avizo
wdisplays
@ -89,6 +88,7 @@ in
# terminal
kitty
dt-shell-color-scripts
# window manager
rofimoji

View File

@ -1,20 +1,16 @@
{ config, pkgs, ... }:
let
unstable = import (builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/master)
{ config = config.nixpkgs.config; };
in
{ config, pkgs, hyprland, ... }:
{
home-manager.users.zoe.programs.waybar = {
enable = true;
package = unstable.waybar;
package = hyprland.packages.${pkgs.system}.waybar-hyprland;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 30;
modules-left = [ "wlr/workspaces" "wlr/taskbar" "hyprland/submap" ];
modules-center = [ "clock" ];
modules-right = [ "battery" "clock" ];
modules-center = [ "mpris" ];
modules-right = [ "network" "upower" "clock" "tray" ];
"wlr/taskbar" = {
"format" = "{icon}";
@ -27,14 +23,57 @@ in
};
"clock" = {
"format" = "{:%H:%M} ";
"format" = "{:%H:%M}";
};
"battery" = {
"format" = "{capacity}{icon}";
"format-icons" = "['', '', '', '', '']";
"network" = {
format = "{essid}{signalStrength}";
format-disconnected = "NO NETWORK";
tooltip = "false";
};
"upower" = {
"hide-if-empty" = "true";
};
"mpris" = {
"format" = "{status_icon} {artist} - {title}";
"status-icons" = {
"paused" = "paused!";
"playing" = "jamming!";
};
};
};
};
style = ''
* {
font-family: "CaskaydiaCove Nerd Font";
font-size: 14px;
background: none;
color: #${config.color.foreground};
min-height: 24px;
padding: 0px 4px;
margin: 0;
}
window#waybar,
tooltip {
border-bottom: 2px solid #${config.color.green};
background: alpha(#${config.color.background}, 0.9);
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
}
#workspaces button.active label{
color: #${config.color.green};
}
#submap {
color: #${config.color.red};
}
'';
};
}