add waybar icons (needs fonts)
This commit is contained in:
parent
d546a7ed36
commit
b6a6cf44e0
8 changed files with 110 additions and 22 deletions
10
common/colors.nix
Normal file
10
common/colors.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ config, pkgs, nix-colors, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
nix-colors.homeManagerModules.default
|
||||
];
|
||||
|
||||
colorScheme = nix-colors.colorSchemes.catppuccin-macchiato;
|
||||
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
"DP-2,1920x1080@60,0x0,1"
|
||||
];
|
||||
windowrulev2 = [
|
||||
"opacity 0.8 0.8,class:^(kitty)$"
|
||||
"opacity 1.0 0.6,class:^(kitty)$"
|
||||
"stayfocused,class:^(wofi)$"
|
||||
];
|
||||
env = [
|
||||
|
|
@ -43,8 +43,8 @@
|
|||
gaps_in = "2";
|
||||
gaps_out = "3";
|
||||
border_size = "3";
|
||||
"col.active_border"="0xff7c94bf";
|
||||
"col.inactive_border"="0x00ffffff";
|
||||
"col.active_border"="0xff950fad";
|
||||
"col.inactive_border"="0xff26052e";
|
||||
};
|
||||
decoration = {
|
||||
rounding = "6";
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
];
|
||||
modules-left = [ "hyprland/workspaces" "tray" "custom/pronouns" "custom/spotify" ];
|
||||
modules-center = [ "hyprland/window" "clock" ];
|
||||
modules-right = [ "custom/vpn" "wireplumber" "network" "cpu" "memory" "keyboard-state" "custom/poweroff" ];
|
||||
modules-right = [ "custom/vpn" "wireplumber" "network" "cpu" "memory" "temperature" "custom/poweroff" ];
|
||||
"clock" = {
|
||||
tooltip-format = "<big>{:%Y %B}</big>\n\n<small>{calendar}</small>";
|
||||
interval = 1;
|
||||
|
|
@ -49,13 +49,27 @@
|
|||
exec-if = "test -d /proc/sys/net/ipv4/conf/tun0";
|
||||
return-type = "json";
|
||||
interval = 5;
|
||||
};
|
||||
"temperature" = {
|
||||
thermal-zone = 2;
|
||||
hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input";
|
||||
critical-threshold = 80;
|
||||
format = "{temperatureC}°C {icon}";
|
||||
format-icons = ["" "" ""];
|
||||
};
|
||||
"custom/poweroff" = {
|
||||
# TODO fix format
|
||||
format = "P";
|
||||
format = "";
|
||||
on-click = "wofi-power";
|
||||
on-click-right = "swaylock";
|
||||
};
|
||||
"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}";
|
||||
};
|
||||
"custom/pronouns" = {
|
||||
format = "{}";
|
||||
exec = "${config.xdg.configHome}/waybar/pronouns";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{ config, pkgs, inputs, nix-colors, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./colors.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
(writeShellScriptBin "wofi-launch" ''
|
||||
${wofi}/bin/wofi --show drun
|
||||
|
|
@ -53,7 +56,7 @@
|
|||
#window {
|
||||
margin: 10px;
|
||||
border: none;
|
||||
background-color: #030035;
|
||||
background-color: #${config.colorScheme.palette.base0E};
|
||||
border-radius: 10px;
|
||||
font-family:
|
||||
JetBrains Mono NF,
|
||||
|
|
@ -64,7 +67,7 @@
|
|||
|
||||
#outer-box {
|
||||
margin: 10px;
|
||||
border: 2px @lavender;
|
||||
border: 2px #${config.colorScheme.palette.base07};
|
||||
border-radius: 10px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
|
@ -73,17 +76,17 @@
|
|||
border: none;
|
||||
border-radius: 10px;
|
||||
margin-left: 2px;
|
||||
color: @text;
|
||||
color: #${config.colorScheme.palette.base05};
|
||||
outline-style: none;
|
||||
background-color: @base;
|
||||
background-color: #${config.colorScheme.palette.base00};
|
||||
}
|
||||
|
||||
#scroll {
|
||||
border: 10px solid @mantle;
|
||||
border: 10px solid #${config.colorScheme.palette.base06};
|
||||
border-radius: 10px;
|
||||
/*padding-right: 10px;*/
|
||||
outline: none;
|
||||
background-color: @base;
|
||||
background-color: #${config.colorScheme.palette.base00};
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
|
|
@ -99,17 +102,17 @@
|
|||
margin-left: 15px;*/
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
color: @subtext0;
|
||||
background-color: @base;
|
||||
color: #${config.colorScheme.palette.base02};
|
||||
background-color: #${config.colorScheme.palette.base00};
|
||||
}
|
||||
#entry:selected {
|
||||
border: none;
|
||||
background-color: @green;
|
||||
background-color: #${config.colorScheme.palette.base0B};
|
||||
}
|
||||
|
||||
#text:selected {
|
||||
border: none;
|
||||
color: @crust;
|
||||
color: #${config.colorScheme.palette.base03};
|
||||
}
|
||||
|
||||
#img {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue