From 549b4438931ca822744bb98cf44b83918525ccc8 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 5 Feb 2025 09:58:20 +0100 Subject: [PATCH] Updated config --- .config/hypr/general.conf | 9 +++++++-- .config/waybar/config.jsonc | 5 +++-- .config/waybar/modules.jsonc | 16 ++++++++++++++++ .config/waybar/style.css | 7 ++++--- 4 files changed, 30 insertions(+), 7 deletions(-) diff --git a/.config/hypr/general.conf b/.config/hypr/general.conf index a0e1767..af1173b 100644 --- a/.config/hypr/general.conf +++ b/.config/hypr/general.conf @@ -9,8 +9,8 @@ general { decoration { rounding = 5 - active_opacity = 0.9 - inactive_opacity = 0.9 + active_opacity = 0.8 + inactive_opacity = 0.8 blur { enabled = true @@ -45,6 +45,11 @@ misc { render_ahead_of_time = false } +cursor { + use_cpu_buffer = true + no_hardware_cursors = true +} + input { accel_profile = flat sensitivity = 0 diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index 47632df..18ca6de 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -1,6 +1,7 @@ { "layer": "top", - "position": "bottom", - "modules-right": ["cpu", "custom/gpu", "memory", "disk", "custom/processes", "wireplumber", "clock"], + "position": "top", + "modules-left": ["cpu", "custom/gpu", "memory", "disk", "custom/processes", "custom/tcp", "custom/udp"], + "modules-right": ["wireplumber", "clock"], "include": "~/.config/waybar/modules.jsonc", } \ No newline at end of file diff --git a/.config/waybar/modules.jsonc b/.config/waybar/modules.jsonc index 099177d..eef95ce 100644 --- a/.config/waybar/modules.jsonc +++ b/.config/waybar/modules.jsonc @@ -31,6 +31,22 @@ "tooltip-format": "Number of running processes", "on-click": "$TERMINAL -e btop", }, + "custom/tcp": { + "interval": 2, + "format": "[TCP] {}", + "exec": "lsof -tPniTCP | wc -l", + "return-type": "", + "tooltip-format": "Number of processes with TCP connections", + "on-click": "$TERMINAL -e bandwhich", + }, + "custom/udp": { + "interval": 2, + "format": "[UDP] {}", + "exec": "lsof -tPniUDP | wc -l", + "return-type": "", + "tooltip-format": "Number of processes with UDP connections", + "on-click": "$TERMINAL -e bandwhich", + }, "wireplumber": { "format": "[VOL] {volume}%", "format-muted": "", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 2162df2..18f9c88 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -6,11 +6,12 @@ } #waybar { - background: rgba(38, 41, 44, 0.5); + background: transparent; + /* background: rgba(38, 41, 44, 0.5); */ } -#cpu, #custom-gpu, #memory, #disk, #custom-processes, #wireplumber, #clock { - color: rgba(255, 255, 255, 0.8); +#cpu, #custom-gpu, #memory, #disk, #custom-processes, #custom-tcp, #custom-udp, #wireplumber, #clock { + color: rgba(255, 255, 255, 0.6); border-radius: 3px; padding: 4px 8px; margin-left: 4px;