diff --git a/modules/ewwbar/default.nix b/modules/ewwbar/default.nix index 9220310..e8bb480 100644 --- a/modules/ewwbar/default.nix +++ b/modules/ewwbar/default.nix @@ -6,11 +6,12 @@ in { home.packages = with pkgs; [ + alsa-utils + gcal + jq playerctl pw-volume - alsa-utils socat - jq ]; programs.eww = { diff --git a/modules/ewwbar/eww-config/dashboard/dashboard.scss b/modules/ewwbar/eww-config/dashboard/dashboard.scss index 017fde1..ae091f1 100644 --- a/modules/ewwbar/eww-config/dashboard/dashboard.scss +++ b/modules/ewwbar/eww-config/dashboard/dashboard.scss @@ -3,6 +3,19 @@ border-radius: 16px; } +.dash_clock { + background-image: linear-gradient(45deg, #7d7d7d, #262626 30%, #262626 60%, #10384a); + border-radius: 16px; +} + +.dash_clock_time { + font-size: 30px; +} + +.dash_clock_date { + font-size: 20px; +} + .btn_logout, .btn_restart, .btn_shutdown, .btn_switch_windows { font-size: 40px; font-weight: bold; diff --git a/modules/ewwbar/eww-config/dashboard/dashboard.yuck b/modules/ewwbar/eww-config/dashboard/dashboard.yuck index 724eb76..d844cc8 100644 --- a/modules/ewwbar/eww-config/dashboard/dashboard.yuck +++ b/modules/ewwbar/eww-config/dashboard/dashboard.yuck @@ -18,6 +18,21 @@ :onaccept "eww update show_elevation_prompt=false;eww close elevate_to_windows; echo \"{}\" | sudo -S grub-reboot 1 && systemctl reboot") )))) +(defwidget dash_clock [] + (box :class "dash_clock" + :orientation "v" + :vexpand "false" + :hexpand "false" + :spacing 1 + (label :class "dash_clock_time" + :halign "center" + :text {formattime(EWW_TIME, "%H:%M:%S")}) + (label :class "dash_clock_date" + :halign "center" + :text {formattime(EWW_TIME, "%B, %d %Y")}) + (box :vexpand "true") + )) + (defwidget logout [] (box :class "dash_window" :vexpand "false" @@ -50,10 +65,17 @@ :onclick "eww open elevate_to_windows; eww update show_elevation_prompt=true" ""))) -;; Set up prompt window for sudo password -;; that trigglers on reboot_windows, -;; and runs the windows command +(defwindow dash_clock + :stacking "bg" + :focusable "false" + :monitor 0 + :geometry (geometry :x 760 + :y 200 + :width 400 + :height 150) + (dash_clock) +) (defwindow logout :stacking "bg" @@ -95,6 +117,9 @@ :height 75) (reboot_windows)) +;; Set up prompt window for sudo password +;; that trigglers on reboot_windows, +;; and runs the windows command (defwindow elevate_to_windows :monitor 0 :exclusive false diff --git a/modules/ewwbar/eww-config/scripts/clock_background b/modules/ewwbar/eww-config/scripts/clock_background new file mode 100755 index 0000000..8b13789 --- /dev/null +++ b/modules/ewwbar/eww-config/scripts/clock_background @@ -0,0 +1 @@ + diff --git a/modules/ewwbar/eww-config/scripts/moontime b/modules/ewwbar/eww-config/scripts/moontime new file mode 100644 index 0000000..e69de29 diff --git a/modules/ewwbar/eww-config/scripts/suntime b/modules/ewwbar/eww-config/scripts/suntime new file mode 100644 index 0000000..e69de29 diff --git a/modules/hyprland/default.nix b/modules/hyprland/default.nix index 493dcec..1806bd7 100644 --- a/modules/hyprland/default.nix +++ b/modules/hyprland/default.nix @@ -44,7 +44,7 @@ in exec-once = [ "${pkgs.swww}/bin/swww init & sleep 0.5 & ${pkgs.swww}/bin/swww /home/nixolas/Downloads/RecountERD.png" - "eww open bar;eww open logout;eww open restart;eww open shutdown;eww open reboot_windows" + "eww open bar;eww open logout;eww open restart;eww open shutdown;eww open reboot_windows;eww open dash_clock" ]; input = {