finished color configuration

This commit is contained in:
Rouven Seifert 2023-01-20 21:43:16 +01:00
parent 8def55e01e
commit 35248129b5
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
6 changed files with 219 additions and 64 deletions

View file

@ -1,30 +1,68 @@
{ config, pkgs, hyprpaper, ... }:
{
imports = [ ./waybar.nix ];
wayland.windowManager.hyprland.enable = true;
xdg.configFile."hypr/hyprland.conf".source = ./hyprland.conf;
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ${../../../../images/wallpaper.png}
wallpaper =, ${../../../../images/wallpaper.png}
wallpaper =eDP-1, ${../../../../images/wallpaper.png}
wallpaper =HDMI-A-1, ${../../../../images/wallpaper.png}
'';
# TODO integrate this to nix-colors
xdg.configFile."wofi".source = ./wofi-config;
home.packages = [
pkgs.wofi
home.packages = with pkgs; [
wofi
font-awesome
hyprpaper.packages.x86_64-linux.default
];
programs.waybar = {
enable = true;
#settings = {
#mainBar = {
#layer = "top";
#position = "top";
#};
#};
};
xdg.configFile."wofi/config".text = ''
allow_images = true
term = alacritty
'';
xdg.configFile."wofi/style.css".text = ''
window {
margin: 0px;
border: 1px solid #${config.colorScheme.colors.base0D};
background-color: #${config.colorScheme.colors.base00};
}
#input {
margin: 5px;
border: none;
color: #${config.colorScheme.colors.base05};
background-color: #${config.colorScheme.colors.base02};
}
#inner-box,
#outer-box {
margin: 5px;
border: none;
background-color: #${config.colorScheme.colors.base00};
}
#text {
margin: 5px;
border: none;
color: #${config.colorScheme.colors.base05};
}
#entry:selected {
background-color: #${config.colorScheme.colors.base01};
}
#entry:nth-child(even),
#entry:nth-child(odd){
background-color: #${config.colorScheme.colors.base02};
}
'';
programs.mako = {
enable = true;
backgroundColor = "#${config.colorScheme.colors.base00}FF";
textColor = "#${config.colorScheme.colors.base05}FF";
#defaultTimeout = 10;
};
}

View file

@ -80,7 +80,7 @@ master {
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = off
workspace_swipe = on
}
# Example windowrule v1

View file

@ -0,0 +1,166 @@
{ config, pkgs, ... }:
{
programs.waybar = {
enable = true;
package = pkgs.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
});
settings = {
mainBar = {
layer = "top";
position = "top";
height = 26;
modules-left = [ "wlr/workspaces" ];
modules-right = [ "network" "cpu" "temperature" "pulseaudio" "battery" "tray" "clock" ];
network = {
format-wifi = " {essid} ({signalStrength}%)";
format-ethernet = " {ipaddr}/{cidr}";
tooltip-format = " {ifname} via {gwaddr}";
format-linked = " {ifname} (No IP)";
format-disconnected = "Disconnected ";
format-alt = "{ifname}: {ipaddr}/{cidr}";
};
cpu = {
format = "{usage}% ";
};
temperature = {
critical-threshold = 80;
format = "{temperatureC}°C {icon}";
format-icons = [ "" ];
};
pulseaudio = {
format = "{volume}% {icon} {format_source}";
format-bluetooth = "{volume}% {icon} {format_source}";
format-bluetooth-muted = " {icon} {format_source}";
format-muted = " {format_source}";
format-source = "{volume}% ";
format-source-muted = "";
format-icons = {
headphone = "";
headset = "";
default = [ "" "" "" ];
};
on-click = "pavucontrol";
};
battery = {
states = {
warning = 30;
critical = 15;
};
format = "{capacity}% {icon}";
format-charging = "{capacity}% ";
format-plugged = "{capacity}% ";
format-icons = [ "" "" "" "" "" ];
};
tray = {
spacing = 10;
};
};
};
};
xdg.configFile."waybar/style.css".text = ''
* {
font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
}
window#waybar {
background-color: transparent;
color: #${config.colorScheme.colors.base05};
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
background-color: transparent;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #${config.colorScheme.colors.base05};
}
#workspaces button.active {
background-color: #${config.colorScheme.colors.base04};
box-shadow: inset 0 -3px #${config.colorScheme.colors.base05};
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#clock,
#battery,
#cpu,
#memory,
#temperature,
#network,
#pulseaudio,
#tray{
border-radius: 30px;
padding: 0 10px;
color: #${config.colorScheme.colors.base05};
}
#window,
#workspaces {
margin: 0 4px;
}
#clock {
background-color: #${config.colorScheme.colors.base00};
}
#battery {
background-color: #${config.colorScheme.colors.base02};
color: #${config.colorScheme.colors.base05};
}
#battery.charging, #battery.plugged {
color: #${config.colorScheme.colors.base05};
background-color: #${config.colorScheme.colors.base02};
}
#battery.critical:not(.charging) {
background-color: #${config.colorScheme.colors.base08};
color: #${config.colorScheme.colors.base01};
}
#cpu {
background-color: #${config.colorScheme.colors.base06};
color: #${config.colorScheme.colors.base01};
}
#network {
background-color: #${config.colorScheme.colors.base07};
color: #${config.colorScheme.colors.base01};
}
#network.disconnected {
background-color: #${config.colorScheme.colors.base08};
}
#pulseaudio {
background-color: #${config.colorScheme.colors.base03};
color: #${config.colorScheme.colors.base05};
}
#temperature {
background-color: #${config.colorScheme.colors.base05};
color: #${config.colorScheme.colors.base01};
}
#temperature.critical {
background-color: #${config.colorScheme.colors.base08};
color: #${config.colorScheme.colors.base01};
}
#tray {
background-color: #${config.colorScheme.colors.base01};
color: #${config.colorScheme.colors.base05};
}
'';
}

View file

@ -1,2 +0,0 @@
allow_images = true
term = alacritty

View file

@ -1,46 +0,0 @@
window {
margin: 0px;
border: 1px solid #bd93f9;
background-color: #282a36;
}
#input {
margin: 5px;
border: none;
color: #f8f8f2;
background-color: #44475a;
}
#inner-box {
margin: 5px;
border: none;
background-color: #282a36;
}
#outer-box {
margin: 5px;
border: none;
background-color: #282a36;
}
#scroll {
margin: 0px;
border: none;
}
#text {
margin: 5px;
border: none;
color: #f8f8f2;
}
#entry:selected {
background-color: #44475a;
}
#entry:nth-child(even){
background-color: #404552;
}
#entry:nth-child(odd){
background-color: #404552;
}

View file

@ -46,7 +46,6 @@
virt-manager
powerline-fonts
ventoy-bin
mpd
# libs
libyubikey