This commit is contained in:
2025-12-11 14:49:46 -05:00
commit 546f74ecc4
2 changed files with 136 additions and 0 deletions

37
eww.scss Normal file
View File

@@ -0,0 +1,37 @@
.activate-linux {
color: rgba(250, 250, 250, 0.5);
&.background {
background: none;
}
}
.ports-box {
padding: 10px;
margin: 6px;
border-radius: 6px;
background-color: rgba(0,0,0,0.3);
}
.ports-header {
font-weight: bold;
padding-bottom: 4px;
border-bottom: 1px solid rgba(255,255,255,0.2);
}
.clock-box {
padding: 10px;
margin: 6px;
border-radius: 8px;
background-color: rgba(0,0,0,0.25);
}
.clock-time {
font-size: 60px;
font-weight: 600;
}
.clock-date {
font-size: 20px;
}

99
eww.yuck Normal file
View File

@@ -0,0 +1,99 @@
(defwidget activate-linux []
(box
:orientation "v"
:halign "start"
:valign "start"
(label :xalign 0 :markup "<span font_size=\"large\">Activate Linux</span>")
(label :xalign 0 :text "Go to Settings to activate Linux")))
(defwindow activate-linux
:monitor 0
:stacking "fg"
:geometry (geometry :x "8px" :y "32px" :width "250px" :anchor "bottom right")
(activate-linux))
;(defwidget common-ports []
; (box
; :orientation "v"
; (box :orientation "h"
; (label :text "Port" :hexpand true :halign "start")
; (label :text "Protocol" :hexpand true :halign "end"))
; (box :orientation "h"
; (label :text "20" :hexpand true :halign "start")
; (label :text "File Transfer Protocol (FTP) (data)" :hexpand true :halign "end"))
; (box :orientation "h"
; (label :text "21" :hexpand true :halign "start")
; (label :text "File Transfer Protocol (FTP) (ctrl)" :hexpand true :halign "end"))
; (box :orientation "h"
; (label :text "22" :hexpand true :halign "start")
; (label :text "Secure Shell (SSH)" :hexpand true :halign "end"))
; (box :orientation "h"
; (label :text "23" :hexpand true :halign "start")
; (label :text "Telnet" :hexpand true :halign "end"))
; (box :orientation "h"
; (label :text "25" :hexpand true :halign "start")
; (label :text "Simple Mail Transfer Protocol (SMTP)" :hexpand true :halign "end"))
(defwidget common-ports []
(box
:orientation "v"
:spacing 4
:class "ports-box"
(box :orientation "h" :class "ports-header"
(label :text "Port" :hexpand true :halign "start")
(label :text "Protocol" :hexpand true :halign "end"))
(box :orientation "h" (label :text "20" :hexpand true :halign "start") (label :text "FTP" :hexpand true :halign "end"))
(box :orientation "h" (label :text "21" :hexpand true :halign "start") (label :text "FTP Control" :hexpand true :halign "end"))
(box :orientation "h" (label :text "22" :hexpand true :halign "start") (label :text "SSH" :hexpand true :halign "end"))
(box :orientation "h" (label :text "23" :hexpand true :halign "start") (label :text "Telnet" :hexpand true :halign "end"))
(box :orientation "h" (label :text "25" :hexpand true :halign "start") (label :text "SMTP" :hexpand true :halign "end"))
(box :orientation "h" (label :text "53" :hexpand true :halign "start") (label :text "DNS" :hexpand true :halign "end"))
(box :orientation "h" (label :text "80" :hexpand true :halign "start") (label :text "HTTP" :hexpand true :halign "end"))
(box :orientation "h" (label :text "110" :hexpand true :halign "start") (label :text "POP3" :hexpand true :halign "end"))
(box :orientation "h" (label :text "119" :hexpand true :halign "start") (label :text "NNTP" :hexpand true :halign "end"))
(box :orientation "h" (label :text "123" :hexpand true :halign "start") (label :text "NTP" :hexpand true :halign "end"))
(box :orientation "h" (label :text "143" :hexpand true :halign "start") (label :text "IMAP" :hexpand true :halign "end"))
(box :orientation "h" (label :text "161" :hexpand true :halign "start") (label :text "SNMP" :hexpand true :halign "end"))
(box :orientation "h" (label :text "194" :hexpand true :halign "start") (label :text "IRC" :hexpand true :halign "end"))
(box :orientation "h" (label :text "443" :hexpand true :halign "start") (label :text "HTTPS" :hexpand true :halign "end"))))
(defwindow ports
:monitor 0
:geometry (geometry
:x "5%"
:y "5%"
:anchor "top left"
:width "200px"
)
:stacking "bg"
:exclusive false
:focusable false
(common-ports))
(defpoll clock-time
:interval "1s"
"date '+%H:%M'")
(defpoll clock-date
:interval "60s"
"date '+%A %b %d'")
(defwidget clock-widget []
(box
:orientation "v"
:spacing 2
:class "clock-box"
(label :text clock-time :class "clock-time")
(label :text clock-date :class "clock-date")))
(defwindow clock
:monitor 0
:geometry (geometry
:x "32px"
:y "32px"
:anchor "bottom right"
:width "225px")
:stacking "bg" ; appear behind other windows
:focusable false
(clock-widget))