Compare commits

...

2 Commits

Author SHA1 Message Date
bd49925080 updated style 2025-08-23 19:32:51 +02:00
f0739adf34 updated scripts 2025-08-23 19:28:41 +02:00
6 changed files with 17 additions and 18 deletions

View File

@@ -13,7 +13,7 @@ general {
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
# col.active_border = rgba(cba6f7ee) rgba(f38ba8ee) 45deg # col.active_border = rgba(cba6f7ee) rgba(f38ba8ee) 45deg
col.active_border = rgb($mauveAlpha) rgb($tealAlpha) 30deg col.active_border = rgb($mauveAlpha) rgb($blueAlpha) 30deg
col.inactive_border = rgb($surface2Alpha) col.inactive_border = rgb($surface2Alpha)
# Set to true enable resizing windows by clicking and dragging on borders and gaps # Set to true enable resizing windows by clicking and dragging on borders and gaps

View File

@@ -6,20 +6,21 @@
"modules-left": [ "modules-left": [
"hyprland/workspaces" "hyprland/workspaces"
], ],
"modules-center": [], "modules-center": [
"tray",
"clock"
],
"modules-right": [ "modules-right": [
// "custom/bluetooth-audio", // "custom/bluetooth-audio",
// "custom/pixelbuds_pro", // "custom/pixelbuds_pro",
"custom/mem", "custom/mem",
"custom/cpu", "custom/cpu",
"custom/gpu", "custom/gpu",
"network", // "network",
"custom/audio-output",
"wireplumber",
"tray",
"custom/gpu-screen-recorder", "custom/gpu-screen-recorder",
"custom/gamemode", "custom/gamemode",
"clock" "custom/audio-output",
"wireplumber",
], ],
"hyprland/workspaces": { "hyprland/workspaces": {
"format": "{icon}", "format": "{icon}",

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
USAGE=$(mpstat 1 1 | awk '/Average:/ {print 100 - $12}') USAGE=$(mpstat 1 1 | awk '/Average:/ {print 100 - $12}')
TEMP=$(cat /sys/class/hwmon/hwmon3/temp1_input) TEMP=$(cat /sys/class/hwmon/hwmon3/temp1_input)
TEXT="$(printf "%.1f" $(echo "$USAGE"))% TEMP: $(printf "%.1f" $(echo "scale=2; $TEMP"/1000 | bc -l))C" TEXT="$(printf "%.1f" $(echo "$USAGE"))% $(printf "%.1f" $(echo "scale=2; $TEMP"/1000 | bc -l))C"
CPU=$(lscpu | grep 'Model name' | awk -F': ' '{print $2}' | sed 's/^[ \t]*//') CPU=$(lscpu | grep 'Model name' | awk -F': ' '{print $2}' | sed 's/^[ \t]*//')
# TOOLTIP=$(ps -eo %cpu,comm --sort=-%cpu | head -n 6 | sed '1d' | awk '{output = output sprintf("%.1f%%\t%s\\n", $1, $2)} END {printf "%s", output}') # TOOLTIP=$(ps -eo %cpu,comm --sort=-%cpu | head -n 6 | sed '1d' | awk '{output = output sprintf("%.1f%%\t%s\\n", $1, $2)} END {printf "%s", output}')
# TOOLTIP=$(ps -eo %cpu,comm --sort=-%cpu | head -n 6 | sed '1d' | awk -v ncores=$(nproc) '{printf "%.1f%%\t%s\n", $1/ncores, $2}') # TOOLTIP=$(ps -eo %cpu,comm --sort=-%cpu | head -n 6 | sed '1d' | awk -v ncores=$(nproc) '{printf "%.1f%%\t%s\n", $1/ncores, $2}')

View File

@@ -6,7 +6,7 @@ EDGE_TEMP=$(cat /sys/class/drm/card1/device/hwmon/hwmon2/temp1_input)
JUNC_TEMP=$(cat /sys/class/drm/card1/device/hwmon/hwmon2/temp2_input) JUNC_TEMP=$(cat /sys/class/drm/card1/device/hwmon/hwmon2/temp2_input)
MEM_TEMP=$(cat /sys/class/drm/card1/device/hwmon/hwmon2/temp3_input) MEM_TEMP=$(cat /sys/class/drm/card1/device/hwmon/hwmon2/temp3_input)
GPU=$(/opt/rocm/bin/rocm-smi --showproductname | grep "Card Series" | awk -F':' '{print $3}' | xargs) GPU=$(/opt/rocm/bin/rocm-smi --showproductname | grep "Card Series" | awk -F':' '{print $3}' | xargs)
TEXT="$USAGE% $(printf "%.1f" $(echo "scale=2; $MEM_USED/1024/1024/1024" | bc -l))/$(printf "%.1f" $(echo "scale=2; $MEM_TOTAL/1024/1024/1024" | bc -l))GB TEMP: $(printf "%.1f" $(echo "scale=2; $EDGE_TEMP/1000" | bc -l))/$(printf "%.1f" $(echo "scale=2; $JUNC_TEMP/1000" | bc -l))/$(printf "%.1f" $(echo "scale=2; $MEM_TEMP/1000" | bc -l))C" TEXT="$USAGE% $(printf "%.1f" $(echo "scale=2; $MEM_USED/1024/1024/1024" | bc -l))/$(printf "%.1f" $(echo "scale=2; $MEM_TOTAL/1024/1024/1024" | bc -l))GB $(printf "%.1f" $(echo "scale=2; $EDGE_TEMP/1000" | bc -l))/$(printf "%.1f" $(echo "scale=2; $MEM_TEMP/1000" | bc -l))C"
RATIO=$(echo "$MEM_USED/ $MEM_TOTAL" | bc -l) RATIO=$(echo "$MEM_USED/ $MEM_TOTAL" | bc -l)
CLASS="" CLASS=""

View File

@@ -15,4 +15,4 @@ else
CLASS="normal" CLASS="normal"
fi fi
printf '{"text": "MEM: %s/%sGB", "tooltip": "%s", "class": "%s"}' "$USED" "$TOTAL" "$TOOLTIP" "$CLASS" printf '{"text": "%s/%sGB", "tooltip": "%s", "class": "%s"}' "$USED" "$TOTAL" "$TOOLTIP" "$CLASS"

View File

@@ -40,7 +40,7 @@ window#waybar.hidden {
#workspaces button.active { #workspaces button.active {
color: @text; color: @text;
border-bottom: 3px solid @teal; border-bottom: 3px solid @blue;
} }
#workspaces button:hover { #workspaces button:hover {
@@ -134,8 +134,8 @@ window#waybar.hidden {
#custom-gpu-screen-recorder.recording, #custom-gpu-screen-recorder.recording,
#custom-gamemode.active { #custom-gamemode.active {
color: @yellow; color: @blue;
border-bottom: 3px solid @yellow; border-bottom: 3px solid @blue;
} }
#custom-tlp { #custom-tlp {
@@ -213,14 +213,12 @@ window#waybar.hidden {
} }
#custom-audio-output.unmuted, #wireplumber { #custom-audio-output.unmuted, #wireplumber {
color: @maroon; color: @mauve;
border-bottom: 3px solid @maroon; border-bottom: 3px solid @mauve;
} }
#clock { #clock {
color: @teal; color: @mauve;
} }
#network { #network {