fixing up eww for better things

This commit is contained in:
Chris Cochrun 2025-05-08 14:27:39 -05:00
parent 9a9e1cef44
commit 5976121dad
4 changed files with 54 additions and 52 deletions

View file

@ -664,12 +664,12 @@ in {
output = [ "DP-1" "eDP-1" ];
position = if laptop then "bottom" else "top";
height = 35;
width = if laptop then 1400 else 2100;
width = if laptop then 1400 else 3000;
# Choose the order of the modules "custom/wintitle",
modules-left = [ "hyprland/workspaces" "hyprland/window" ];
modules-center = [ ];
modules-right =
[ "pulseaudio" "backlight" "disk" "memory" "cpu" "battery" "tray" "clock" ];
[ "pulseaudio" "backlight" "disk" "memory" "cpu" "battery" "custom/gpu" "tray" "clock" ];
margin-top = if laptop then -5 else 5;
margin-bottom = if laptop then 4 else 0;
margin-left = 6;
@ -694,7 +694,7 @@ in {
# on-scroll-down = "hyprctl dispatch workspace e-1";
};
tray = {
icon-size = 21;
icon-size = 20;
spacing = 10;
};
clock = {
@ -704,8 +704,15 @@ in {
format-alt = "{:%Y-%m-%d}";
format = "{:%a %b %e, %I:%M %p}";
};
cpu = { format = " {usage}%"; };
memory = { format = " {}%"; };
cpu = { format = " {usage}%"; on-click = "alacritty --class btop -e btop"; };
memory = { format = " {}%"; on-click = "alacritty --class btop -e btop"; };
"custom/gpu" = {
exec = "cat /sys/class/hwmon/hwmon0/device/gpu_busy_percent";
format = "󱤓 {}%";
return-type = "";
interval = 1;
on-click = "alacritty --class btop -e nvtop";
};
temperature = {
# "thermal-zone": 2,
# "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
@ -748,7 +755,7 @@ in {
};
pulseaudio = {
scroll-step = 1;
format = "{icon} {volume}%";
format = "{icon} {volume}%";
format-muted = "󰝟 muted";
format-source = "";
format-source-muted = "";
@ -936,7 +943,7 @@ in {
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base09;
color: @base0A;
background: transparent;
}
@ -958,6 +965,15 @@ in {
background: transparent;
}
#custom-gpu {
padding-left: 5px;
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base08;
background: transparent;
}
#battery {
padding-left: 5px;
padding-right: 5px;
@ -1434,7 +1450,7 @@ in {
padding.y = 10;
dynamic_padding = true;
};
terminal.shell.program = "zellij";
terminal.shell.program = "nu";
font = {
normal = {
family = "VictorMono Nerd Font";

View file

@ -355,23 +355,26 @@ in
# Blur waybar
# blurls = "gtk-layer-shell";
layerrule = [
# "blur, gtk-layer-shell"
"ignorezero, gtk-layer-shell"
"animation snapslide, gtk-layer-shell"
];
# blurls=notifications
exec-once = [
"kwalletd6"
# "eww daemon"
"eww daemon"
"hyprpaper"
# "eww open ${if laptop then "bar0" else "bar1"}"
"eww open ${if laptop then "bar0" else "bar1"}"
# "dunst"
"waybar"
# "waybar"
"rbw-agent"
"hyprctl dispatch --batch 'splitratio 1; splitration -0.35'"
"dbus-update-activation-environment --systemd --all"
"/usr/lib/kdeconnectd"
# "systemctl --user stop jellyfin-mpv-shim"
# "systemctl --user stop emacs"
"systemctl --user stop nextcloud-client"
# "jellyfin-mpv-shim"
"systemctl --user restart jellyfin-mpv-shim"
"systemctl --user restart nextcloud-client"
# "nextcloud"
"kdeconnect-indicator"
"wl-paste --watch cliphist store"