More hyprland and eww config

This commit is contained in:
KoenDR06 2025-03-09 18:16:59 +01:00
parent 22f029cf3e
commit 53a85240f2
4 changed files with 36 additions and 15 deletions

View file

@ -26,7 +26,7 @@
};
wm = {
plasma.enable = true;
hyprland.enable = true;
};
hardware = {

View file

@ -1,12 +1,33 @@
(defwindow example
(defwindow main
:monitor 0
:geometry (geometry :x "0%"
:y "20px"
:width "90%"
:height "30px"
:anchor "top center")
:y "0%"
:width "50%"
:height "50%"
:anchor "center")
:stacking "fg"
:reserve (struts :distance "40px" :side "top")
:windowtype "dock"
:exclusive true
"horseman's laptop")
:exclusive false
:focusable false
(workspaces)
)
(defwidget clock []
(box :class "clock"
{formattime(EWW_TIME, "%b %m %H:%M:%S")}
)
)
(defwidget workspaces []
(box :class "workspaces"
(button :class "workspace-button")
(button :class "workspace-button")
(button :class "workspace-button")
(button :class "workspace-button")
(button :class "workspace-button")
(button :class "workspace-button")
(button :class "workspace-button")
(button :class "workspace-button")
(button :class "workspace-button")
(button :class "workspace-button")
)
)

View file

@ -2,6 +2,8 @@
monitor = eDP-1, 1920x1080@60, 0x0, 1
# terra monitors
monitor = DP-1, 2560x1440, 0x0, 1
monitor = DP-2, 2560x1440, 2560x0, 1
# default monitor config
monitor=,preferred,auto,auto

View file

@ -34,12 +34,10 @@ in {
HandlePowerKey=ignore
'';
system.activationScripts.script.text = ''
cd /home/horseman && \
rm -r .config/hypr && \
cp -r nix-config/modules/wm/hyprland/config \
.config/hypr && \
cd /home/horseman;
rm -r .config/hypr .config/eww;
cp -r nix-config/modules/wm/hyprland/config/* .config
'';
};
}