fixing up eww for better things
This commit is contained in:
parent
9a9e1cef44
commit
5976121dad
|
@ -201,7 +201,9 @@ tooltip label {
|
||||||
|
|
||||||
// Icon Size
|
// Icon Size
|
||||||
.iconbat, .iconmem, .iconcpu .iconvol .iconbright {
|
.iconbat, .iconmem, .iconcpu .iconvol .iconbright {
|
||||||
font-size: 12;
|
// font-size: 12;
|
||||||
|
// padding-top: 2px;
|
||||||
|
// padding-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Memory
|
// Memory
|
||||||
|
@ -215,8 +217,8 @@ tooltip label {
|
||||||
.iconmem {
|
.iconmem {
|
||||||
color: $base0A;
|
color: $base0A;
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
padding-left: 10px;
|
padding-left: 8px;
|
||||||
padding-right: 8px;
|
// padding-right: 8px;
|
||||||
}
|
}
|
||||||
.mem_label {
|
.mem_label {
|
||||||
color: $base0A;
|
color: $base0A;
|
||||||
|
@ -313,12 +315,12 @@ tooltip label {
|
||||||
}
|
}
|
||||||
|
|
||||||
.icondisk {
|
.icondisk {
|
||||||
font-size: 18;
|
// font-size: 18;
|
||||||
color: $base09;
|
color: $base09;
|
||||||
// margin: 3px 5px 0px 3px;
|
// margin: 3px 5px 0px 3px;
|
||||||
padding-top: 3px;
|
padding-top: 3px;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 8px;
|
padding-right: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.separ {
|
.separ {
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
(defpoll WLAN_ICON :interval "1m" "scripts/wifi --ICON")
|
(defpoll WLAN_ICON :interval "1m" "scripts/wifi --ICON")
|
||||||
(defpoll HOST :interval "1h" "hostname")
|
(defpoll HOST :interval "1h" "hostname")
|
||||||
(defpoll DISK :interval "1m" "disk")
|
(defpoll DISK :interval "1m" "disk")
|
||||||
(defpoll gpu :interval "1s" "gpu")
|
(defpoll gpu_percent :interval "1s" "gpu")
|
||||||
;; (defpoll nextcloud :interval "2s" "scripts/nextcloud.sh")
|
;; (defpoll nextcloud :interval "2s" "scripts/nextcloud.sh")
|
||||||
(deflisten volume_percent :interval "0.2s" "tail -F /tmp/vol")
|
(deflisten volume_percent :interval "0.2s" "tail -F /tmp/vol")
|
||||||
(deflisten appname "scripts/appname")
|
(deflisten appname "scripts/appname")
|
||||||
|
@ -139,13 +139,10 @@
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:spacing 0
|
:spacing 0
|
||||||
(button
|
(button
|
||||||
:onclick "scripts/pop system"
|
:onclick "alacritty --class btop -e btop -p 2 &"
|
||||||
:class "icondisk"
|
:class "icondisk"
|
||||||
:tooltip "${DISK}"
|
:tooltip "${DISK}"
|
||||||
"")
|
" ${DISK}")))
|
||||||
(label
|
|
||||||
:text "${DISK}"
|
|
||||||
:class "disk_label")))
|
|
||||||
|
|
||||||
(defwidget bright []
|
(defwidget bright []
|
||||||
(box
|
(box
|
||||||
|
@ -158,11 +155,7 @@
|
||||||
:class "iconbright"
|
:class "iconbright"
|
||||||
;; :onclick "scripts/pop audio"
|
;; :onclick "scripts/pop audio"
|
||||||
:tooltip "${brightness_percent}%"
|
:tooltip "${brightness_percent}%"
|
||||||
"")
|
" ${brightness_percent}")))
|
||||||
(label
|
|
||||||
:text brightness_percent
|
|
||||||
:class "bright_label"))
|
|
||||||
)
|
|
||||||
|
|
||||||
(defwidget volume []
|
(defwidget volume []
|
||||||
(box
|
(box
|
||||||
|
@ -172,12 +165,9 @@
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
(button
|
(button
|
||||||
:class "iconvol"
|
:class "iconvol"
|
||||||
:onclick "scripts/pop audio"
|
:onclick "alacritty --class pulsemixer -e pulsemixer &"
|
||||||
:tooltip "${volume_percent}%"
|
:tooltip "${volume_percent}%"
|
||||||
"")
|
" ${volume_percent}")))
|
||||||
(label
|
|
||||||
:text volume_percent
|
|
||||||
:class "vol_label")))
|
|
||||||
|
|
||||||
(defwidget cpu []
|
(defwidget cpu []
|
||||||
(box
|
(box
|
||||||
|
@ -186,13 +176,10 @@
|
||||||
:hexpand "false"
|
:hexpand "false"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
(button
|
(button
|
||||||
:onclick "scripts/pop system"
|
:onclick "alacritty --class btop -e btop &"
|
||||||
:class "iconcpu"
|
:class "iconcpu"
|
||||||
:tooltip "using ${EWW_CPU.avg}% of cpu"
|
:tooltip "using ${EWW_CPU.avg}% of cpu"
|
||||||
"")
|
" ${round(EWW_CPU.avg, 0)}%")))
|
||||||
(label
|
|
||||||
:text "${round(EWW_CPU.avg, 0)}%"
|
|
||||||
:class "cpu_label")))
|
|
||||||
|
|
||||||
(defwidget gpu []
|
(defwidget gpu []
|
||||||
(box
|
(box
|
||||||
|
@ -201,13 +188,10 @@
|
||||||
:hexpand "false"
|
:hexpand "false"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
(button
|
(button
|
||||||
:onclick "scripts/pop system"
|
:onclick "alacritty --class btop -e nvtop &"
|
||||||
:class "icongpu"
|
:class "icongpu"
|
||||||
:tooltip gpu
|
:tooltip gpu_percent
|
||||||
"")
|
" ${gpu_percent}")))
|
||||||
(label
|
|
||||||
:text gpu
|
|
||||||
:class "gpu_label")))
|
|
||||||
|
|
||||||
(defwidget mem []
|
(defwidget mem []
|
||||||
(box
|
(box
|
||||||
|
@ -216,13 +200,10 @@
|
||||||
:vexpand "true"
|
:vexpand "true"
|
||||||
:hexpand "false"
|
:hexpand "false"
|
||||||
(button
|
(button
|
||||||
:onclick "scripts/pop system"
|
:onclick "alacritty --class btop -e btop &"
|
||||||
:class "iconmem"
|
:class "iconmem"
|
||||||
:tooltip "using ${EWW_RAM.used_mem_perc}% ram"
|
:tooltip "using ${EWW_RAM.used_mem_perc}% ram"
|
||||||
"")
|
" ${round(EWW_RAM.used_mem_perc, 0)}%")))
|
||||||
(label
|
|
||||||
:text "${round(EWW_RAM.used_mem_perc, 0)}%"
|
|
||||||
:class "mem_label")))
|
|
||||||
|
|
||||||
(defwidget kdeconnect []
|
(defwidget kdeconnect []
|
||||||
(box
|
(box
|
||||||
|
|
|
@ -664,12 +664,12 @@ in {
|
||||||
output = [ "DP-1" "eDP-1" ];
|
output = [ "DP-1" "eDP-1" ];
|
||||||
position = if laptop then "bottom" else "top";
|
position = if laptop then "bottom" else "top";
|
||||||
height = 35;
|
height = 35;
|
||||||
width = if laptop then 1400 else 2100;
|
width = if laptop then 1400 else 3000;
|
||||||
# Choose the order of the modules "custom/wintitle",
|
# Choose the order of the modules "custom/wintitle",
|
||||||
modules-left = [ "hyprland/workspaces" "hyprland/window" ];
|
modules-left = [ "hyprland/workspaces" "hyprland/window" ];
|
||||||
modules-center = [ ];
|
modules-center = [ ];
|
||||||
modules-right =
|
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-top = if laptop then -5 else 5;
|
||||||
margin-bottom = if laptop then 4 else 0;
|
margin-bottom = if laptop then 4 else 0;
|
||||||
margin-left = 6;
|
margin-left = 6;
|
||||||
|
@ -694,7 +694,7 @@ in {
|
||||||
# on-scroll-down = "hyprctl dispatch workspace e-1";
|
# on-scroll-down = "hyprctl dispatch workspace e-1";
|
||||||
};
|
};
|
||||||
tray = {
|
tray = {
|
||||||
icon-size = 21;
|
icon-size = 20;
|
||||||
spacing = 10;
|
spacing = 10;
|
||||||
};
|
};
|
||||||
clock = {
|
clock = {
|
||||||
|
@ -704,8 +704,15 @@ in {
|
||||||
format-alt = "{:%Y-%m-%d}";
|
format-alt = "{:%Y-%m-%d}";
|
||||||
format = "{:%a %b %e, %I:%M %p}";
|
format = "{:%a %b %e, %I:%M %p}";
|
||||||
};
|
};
|
||||||
cpu = { format = " {usage}%"; };
|
cpu = { format = " {usage}%"; on-click = "alacritty --class btop -e btop"; };
|
||||||
memory = { format = " {}%"; };
|
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 = {
|
temperature = {
|
||||||
# "thermal-zone": 2,
|
# "thermal-zone": 2,
|
||||||
# "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
# "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||||
|
@ -936,7 +943,7 @@ in {
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
transition: none;
|
transition: none;
|
||||||
color: @base09;
|
color: @base0A;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -958,6 +965,15 @@ in {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-gpu {
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
border-radius: 20px;
|
||||||
|
transition: none;
|
||||||
|
color: @base08;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
#battery {
|
#battery {
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
|
@ -1434,7 +1450,7 @@ in {
|
||||||
padding.y = 10;
|
padding.y = 10;
|
||||||
dynamic_padding = true;
|
dynamic_padding = true;
|
||||||
};
|
};
|
||||||
terminal.shell.program = "zellij";
|
terminal.shell.program = "nu";
|
||||||
font = {
|
font = {
|
||||||
normal = {
|
normal = {
|
||||||
family = "VictorMono Nerd Font";
|
family = "VictorMono Nerd Font";
|
||||||
|
|
|
@ -355,23 +355,26 @@ in
|
||||||
|
|
||||||
# Blur waybar
|
# Blur waybar
|
||||||
# blurls = "gtk-layer-shell";
|
# blurls = "gtk-layer-shell";
|
||||||
|
layerrule = [
|
||||||
|
# "blur, gtk-layer-shell"
|
||||||
|
"ignorezero, gtk-layer-shell"
|
||||||
|
"animation snapslide, gtk-layer-shell"
|
||||||
|
];
|
||||||
# blurls=notifications
|
# blurls=notifications
|
||||||
|
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"kwalletd6"
|
"kwalletd6"
|
||||||
# "eww daemon"
|
"eww daemon"
|
||||||
"hyprpaper"
|
"hyprpaper"
|
||||||
# "eww open ${if laptop then "bar0" else "bar1"}"
|
"eww open ${if laptop then "bar0" else "bar1"}"
|
||||||
# "dunst"
|
# "dunst"
|
||||||
"waybar"
|
# "waybar"
|
||||||
"rbw-agent"
|
"rbw-agent"
|
||||||
"hyprctl dispatch --batch 'splitratio 1; splitration -0.35'"
|
"hyprctl dispatch --batch 'splitratio 1; splitration -0.35'"
|
||||||
"dbus-update-activation-environment --systemd --all"
|
"dbus-update-activation-environment --systemd --all"
|
||||||
"/usr/lib/kdeconnectd"
|
"/usr/lib/kdeconnectd"
|
||||||
# "systemctl --user stop jellyfin-mpv-shim"
|
"systemctl --user restart jellyfin-mpv-shim"
|
||||||
# "systemctl --user stop emacs"
|
"systemctl --user restart nextcloud-client"
|
||||||
"systemctl --user stop nextcloud-client"
|
|
||||||
# "jellyfin-mpv-shim"
|
|
||||||
# "nextcloud"
|
# "nextcloud"
|
||||||
"kdeconnect-indicator"
|
"kdeconnect-indicator"
|
||||||
"wl-paste --watch cliphist store"
|
"wl-paste --watch cliphist store"
|
||||||
|
|
Loading…
Reference in a new issue