From ce657c1b327388ce37a37a4192090dbb46a43728 Mon Sep 17 00:00:00 2001 From: zer0day Date: Mon, 5 May 2025 00:03:38 +0200 Subject: [PATCH] adding missing dirs --- config/eww/eww.scss | 58 ++++++++++++++++ config/eww/eww.yuck | 101 ++++++++++++++++++++++++++++ config/eww/scripts/netinfo.sh | 4 ++ config/eww/scripts/networkWidget.sh | 3 + config/eww/widgets.yuck | 0 config/eww/windows/netWindow.yuck | 15 +++++ config/fontconfig/fonts.conf | 36 ++++++++++ config/fontconfig/fonts.conf.back | 35 ++++++++++ config/xsettingsd/xsettingsd.conf | 9 +++ 9 files changed, 261 insertions(+) create mode 100644 config/eww/eww.scss create mode 100644 config/eww/eww.yuck create mode 100755 config/eww/scripts/netinfo.sh create mode 100755 config/eww/scripts/networkWidget.sh create mode 100644 config/eww/widgets.yuck create mode 100644 config/eww/windows/netWindow.yuck create mode 100644 config/fontconfig/fonts.conf create mode 100644 config/fontconfig/fonts.conf.back create mode 100644 config/xsettingsd/xsettingsd.conf diff --git a/config/eww/eww.scss b/config/eww/eww.scss new file mode 100644 index 0000000..df79c76 --- /dev/null +++ b/config/eww/eww.scss @@ -0,0 +1,58 @@ +* { + all: unset; + font-family: "SauceCodePro Nerd Font Propo"; +} + +.content { + padding: 10px; + background-color: rgba(34, 34, 34, .6); + border-radius: 20px; + border-color: #db5e5e; + border-style: solid; + border-width: 1px; +} +.buttons { + padding: 10px; + background-color: rgba(172, 89, 89, 0.4); + border-radius: 10px; + border-color: #2b1111; + border-style: solid; + border-width: 1px; + +} +.topcontent { + margin-top: 50px; + padding: 20px; + background-color: rgba(29, 29, 29, 0.2); + border-radius: 100px; + //border-color: #db5e5e; + //border-style: solid; + border-width: 1px; +} +.centercontent { + padding: 20px; + //margin: 10px; + background-color: rgba(37, 23, 23, 0.4); + border-radius: 20px; + //border-color: #db5e5e; + //border-style: solid; + border-width: 1px; +} +.bottomcontent { + padding: 10px; +} +.infolabel { + padding: 20px; +} + +/* +[scratchpads.network] +command = "nm-connection editor" +class = "nm-connection-editor" +size ="600px 800px" +margin = 50 +unfocus = "hide" +animation = "fromRight" +multi = true + +*/ \ No newline at end of file diff --git a/config/eww/eww.yuck b/config/eww/eww.yuck new file mode 100644 index 0000000..865e7e3 --- /dev/null +++ b/config/eww/eww.yuck @@ -0,0 +1,101 @@ +;(include "./windows/netWindow.yuck") + +(defpoll ipaddress :initial "getting info..." + :interval "30s" +`./scripts/netinfo.sh 3`) +(defpoll interface :initial "getting info..." + :interval "30s" +`./scripts/netinfo.sh 1`) + +(defpoll nameserver :initial "getting info..." + :interval "30s" +`cat /etc/resolv.conf | grep "nameserver" | awk '{print $2}'`) + + +(deflisten hostname :initial "getting info..." +`cat /etc/hostname`) + + +; netWindow +; ---------------------------------- +; | content | +; | -------------------- | +; | | topContent | | +; | ||infobox hostname|| | +; | | | | +; | -------------------- | +; | | centerContent | | +; | | IF | IP | DNS | | +; | | | | +; | -------------------- | +; | | +; ---------------------------------- +(defwidget topcontent [] +(box :orientation "h" :class "topcontent" + :halign "center" + :valign "start" + (infobox :name "Hostname:" :info hostname) +)) +(defwidget content [] + (box :orientation "v" :class "content" + :halign "end" + (topcontent) + (centercontent) + (bottomcontent))) + +(defwidget centercontent [] +(box :orientation "h" :class "centercontent" + :halign "end" + :valign "start" + (infobox :name "Interface:" :info interface) + (infobox :name "IP Address:" :info ipaddress) + (infobox :name "DNS Server:" :info nameserver) + +)) + +(defwidget bottomcontent [] + (box :orientation "h" :class "bottomcontent" + :halign "end" + :valign "end" + (nmsettings) + )) + +(defwidget infobox [name info] +(box :orientation "v" :class "infobox" + :halign "center" + :valign "center" + (infolabel :text name) + (infolabel :text info))) + +(defwidget nmsettings [] + (box :orientation "horizontal" :class "buttons" + :halign "end" + :valign "end" + + (button :onclick "pypr toggle network && hyprctl dispatch bringactivetotop" + "Open Connection Editor"))) + +(defwidget infolabel [text] + (label :text text :class "infolabel" + :halign "center" + :valign "center")) +(defwidget lowercontent[] +(box :orientation "h" :class "lowercontent" + :halign "center" + :valign "center")) + + +(defwindow network + :class network_window + :monitor 1 + :geometry (geometry :x "20px" + :y "50px" + :width "560px" + :height "85%" + :anchor "right center") + :stacking "fg" + ;:reserve (struts :distance "10px" :side "top") ;;only for x11 + ;:windowtype "dock" ;;only for x11 + ;:wm-ignore false ;;only for x11 + + (content)) \ No newline at end of file diff --git a/config/eww/scripts/netinfo.sh b/config/eww/scripts/netinfo.sh new file mode 100755 index 0000000..cd31a68 --- /dev/null +++ b/config/eww/scripts/netinfo.sh @@ -0,0 +1,4 @@ +#!/bin/sh +field_number=$1 +ip -brief addr | grep "UP" | awk -v field="$field_number" '{print $field}' + diff --git a/config/eww/scripts/networkWidget.sh b/config/eww/scripts/networkWidget.sh new file mode 100755 index 0000000..23ba750 --- /dev/null +++ b/config/eww/scripts/networkWidget.sh @@ -0,0 +1,3 @@ +#!/bin/sh +monitor=$(hyprctl activeworkspace | grep "monitorID:" -m 1 | awk '{print $2}') +eww open --toggle network --screen $monitor \ No newline at end of file diff --git a/config/eww/widgets.yuck b/config/eww/widgets.yuck new file mode 100644 index 0000000..e69de29 diff --git a/config/eww/windows/netWindow.yuck b/config/eww/windows/netWindow.yuck new file mode 100644 index 0000000..97204f9 --- /dev/null +++ b/config/eww/windows/netWindow.yuck @@ -0,0 +1,15 @@ +(defwindow network + :class network_window + :monitor 1 + :geometry (geometry :x "20px" + :y "40px" + :width "20px" + :height "85%" + :anchor "right center") + :stacking "fg" + ;:reserve (struts :distance "10px" :side "top") ;;only for x11 + ;:windowtype "dock" ;;only for x11 + ;:wm-ignore false ;;only for x11 + + (content) + ) \ No newline at end of file diff --git a/config/fontconfig/fonts.conf b/config/fontconfig/fonts.conf new file mode 100644 index 0000000..a36f613 --- /dev/null +++ b/config/fontconfig/fonts.conf @@ -0,0 +1,36 @@ + + + + + + true + + + true + + + hintnone + + + none + + + true + + + lcdnone + + + 102 + + + + + medium + + + true + + + ~/.local/share/fonts + diff --git a/config/fontconfig/fonts.conf.back b/config/fontconfig/fonts.conf.back new file mode 100644 index 0000000..56f5ced --- /dev/null +++ b/config/fontconfig/fonts.conf.back @@ -0,0 +1,35 @@ + + + + + + true + + + true + + + hintnone + + + none + + + true + + + lcdnone + + + 102 + + + + + medium + + + true + + + diff --git a/config/xsettingsd/xsettingsd.conf b/config/xsettingsd/xsettingsd.conf new file mode 100644 index 0000000..eec844d --- /dev/null +++ b/config/xsettingsd/xsettingsd.conf @@ -0,0 +1,9 @@ +Net/ThemeName "Breeze-Dark" +Net/IconThemeName "kora" +Gtk/CursorThemeName "default" +Net/EnableEventSounds 1 +EnableInputFeedbackSounds 0 +Xft/Antialias 1 +Xft/Hinting 1 +Xft/HintStyle "hintslight" +Xft/RGBA "rgb"