removed center launcher and ip fetching

This commit is contained in:
2026-06-14 19:57:31 -05:00
parent 7315360f0a
commit 76c7b98d65

View File

@@ -15,7 +15,6 @@
(defpoll time :interval "1s" :initial `date +%H:%M:%S` `date +%H:%M:%S`) (defpoll time :interval "1s" :initial `date +%H:%M:%S` `date +%H:%M:%S`)
(defpoll date :interval "1m" "date +%m/%d/%y") (defpoll date :interval "1m" "date +%m/%d/%y")
(defpoll ip_addr :interval "1h" 'ip -j a show enp0s3')
(defpoll volume :interval "250ms" 'wpctl get-volume @DEFAULT_SINK@') ;;turn this into a script or smth (defpoll volume :interval "250ms" 'wpctl get-volume @DEFAULT_SINK@') ;;turn this into a script or smth
(defpoll active_workspaces :interval "250ms" "hyprctl workspaces -j") (defpoll active_workspaces :interval "250ms" "hyprctl workspaces -j")
(defpoll active_window :interval "500ms" 'hyprctl activewindow -j') (defpoll active_window :interval "500ms" 'hyprctl activewindow -j')
@@ -25,7 +24,6 @@
(defvar reveal_sound false) (defvar reveal_sound false)
(defvar reveal_sound_menu false) (defvar reveal_sound_menu false)
(defvar network_interface "enp5s0") ;;the interface to listen to (defvar network_interface "enp5s0") ;;the interface to listen to
(defvar reveal_apps 0)
(defvar browser "microsoft-edge-stable") (defvar browser "microsoft-edge-stable")
(defvar filemanager "dolphin") (defvar filemanager "dolphin")
@@ -36,9 +34,15 @@
;; DONE volume ;; DONE volume
;; make the sound icon do smth ;; make the sound icon do smth
;; power menu ;; power menu
;; remove app tray ;; DONE remove app tray
;; limit width of cava visualizer ;; limit width of cava visualizer
;; handle second monitor ;; DONE handle second monitor
;; remove cpu graph
;; add more temp sensors
;; make the cpu two colums somehow
;; fix widgets and whatnot not showing up
;; show ram percentage on hover
;; make the storage pie icon look better
(defwidget workspaces [] (defwidget workspaces []
(box (box
@@ -99,27 +103,14 @@
:class "monitor" :class "monitor"
:orientation "v" :orientation "v"
"${network_interface}" "${network_interface}"
(label :limit_width 25 :wrap true :text "ip: ${ip_addr[0].addr_info[0].local}")
(label :text "󰕒:${round(EWW_NET.enp5s0.NET_UP / 1000000 * 8, 1)} / 󰇚:${round(EWW_NET.enp5s0.NET_DOWN / 1000000 * 8, 1)} mbps") (label :text "󰕒:${round(EWW_NET.enp5s0.NET_UP / 1000000 * 8, 1)} / 󰇚:${round(EWW_NET.enp5s0.NET_DOWN / 1000000 * 8, 1)} mbps")
) )
) )
(defwidget center [] (defwidget center []
(eventbox
:onhover "eww update reveal_apps=1"
:onhoverlost "eww update reveal_apps=0"
(stack
:selected reveal_apps
:transition "slidedown"
:samesize true
(label :class "center island" :text "${active_window.title ?: splash}") (label :class "center island" :text "${active_window.title ?: splash}")
(box )
:orientation "h"
:space-evenly true
(button :onclick {browser} "")
(button :onclick {filemanager} ""))
)))
(defwidget right [] (defwidget right []