Compare commits

..

7 commits

Author SHA1 Message Date
0417c202a2 added sun-based gradient background to dash clock 2023-11-09 16:57:11 -08:00
aa716f0e35 flake.lock: Update
Flake lock file updates:

• Updated input 'ewwtilities':
    'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=e5070ffc7f32c597c81ec291f04c7a8f1896413e' (2023-11-10)
  → 'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=55205935b4533c5d59bc942e3a28be3e245f08d6' (2023-11-10)
2023-11-09 16:34:04 -08:00
edd11b7337 flake.lock: Update
Flake lock file updates:

• Updated input 'ewwtilities':
    'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=c23ac22e06eaa0cb9d36c7264ce171fa4c6b1b09' (2023-11-10)
  → 'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=e5070ffc7f32c597c81ec291f04c7a8f1896413e' (2023-11-10)
2023-11-09 16:31:39 -08:00
c7bfdfd8d8 flake.lock: Update
Flake lock file updates:

• Updated input 'ewwtilities':
    'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=7e5553750318ac9d1778b5ff98aad1ce763d096e' (2023-11-10)
  → 'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=c23ac22e06eaa0cb9d36c7264ce171fa4c6b1b09' (2023-11-10)
2023-11-09 16:28:30 -08:00
3f0205775c flake.lock: Update
Flake lock file updates:

• Updated input 'ewwtilities':
    'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=e40bfb1a06ae1279b193b5bb4e4ac509af0c3ed8' (2023-11-09)
  → 'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=7e5553750318ac9d1778b5ff98aad1ce763d096e' (2023-11-10)
2023-11-09 16:24:46 -08:00
769c087ebd flake.lock: Update
Flake lock file updates:

• Updated input 'ewwtilities':
    'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=d56a6701457acdcee6ea3db456a0456579b582f4' (2023-11-09)
  → 'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=e40bfb1a06ae1279b193b5bb4e4ac509af0c3ed8' (2023-11-09)
2023-11-09 15:51:26 -08:00
ebcf20d616 flake.lock: Update
Flake lock file updates:

• Updated input 'ewwtilities':
    'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=09f272de15116ec688492206af13db59d2a4b9d3' (2023-11-09)
  → 'git+https://git.nickiel.net/Nickiel/Ewwtilities.git?ref=refs/heads/main&rev=d56a6701457acdcee6ea3db456a0456579b582f4' (2023-11-09)
• Updated input 'nixpkgs-stable':
    'github:NixOS/nixpkgs/da44563672fb0faca83dc56185472e56d1a21852' (2023-11-08)
  → 'github:NixOS/nixpkgs/c41b26e688ff139e009e756a9b88c2760dfa8350' (2023-11-09)
2023-11-09 15:43:29 -08:00
4 changed files with 34 additions and 9 deletions

View file

@ -29,11 +29,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1699504296, "lastModified": 1699576438,
"narHash": "sha256-stW/LgyOvd9UwuWCJxdNrH3VVJsAQPBsZfMwqZJa1j8=", "narHash": "sha256-R/rPuL5HlFMn00trx9X89Iu9hugu1pFuvwkZVSjOpAg=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "09f272de15116ec688492206af13db59d2a4b9d3", "rev": "55205935b4533c5d59bc942e3a28be3e245f08d6",
"revCount": 9, "revCount": 16,
"type": "git", "type": "git",
"url": "https://git.nickiel.net/Nickiel/Ewwtilities.git" "url": "https://git.nickiel.net/Nickiel/Ewwtilities.git"
}, },
@ -229,11 +229,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1699458350, "lastModified": 1699548876,
"narHash": "sha256-AHoi7cM4SzQTpu4ZMzt+KDoxxka/qjGPvR+0lvaLgf0=", "narHash": "sha256-i2Zi1lzKKwDz9tDiZr5nX11irKuwFme0noXb0FF+MWE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "da44563672fb0faca83dc56185472e56d1a21852", "rev": "c41b26e688ff139e009e756a9b88c2760dfa8350",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -4,10 +4,15 @@
} }
.dash_clock { .dash_clock {
background-image: linear-gradient(45deg, #7d7d7d, #262626 30%, #262626 60%, #10384a); // background-image: linear-gradient(45deg, #7d7d7d, #262626 30%, #262626 60%, #10384a);
border-radius: 16px; border-radius: 16px;
} }
.dash_clock_bg {
border-radius: 16px;
background-color: #262626;
}
.dash_clock_time { .dash_clock_time {
font-size: 30px; font-size: 30px;
} }

View file

@ -18,6 +18,14 @@
:onaccept "eww update show_elevation_prompt=false;eww close elevate_to_windows; echo \"{}\" | sudo -S grub-reboot 1 && systemctl reboot") :onaccept "eww update show_elevation_prompt=false;eww close elevate_to_windows; echo \"{}\" | sudo -S grub-reboot 1 && systemctl reboot")
)))) ))))
(defpoll clock_gradient :interval "5m"
{"gcal --resource-file=/home/nixolas/.config/eww/scripts/gcalinfo -H no | ewwtilities calendar-background"})
(defwidget dash_clock_bg []
(box :class "dash_clock_bg"
:style "background-image: ${clock_gradient}"
))
(defwidget dash_clock [] (defwidget dash_clock []
(box :class "dash_clock" (box :class "dash_clock"
:orientation "v" :orientation "v"
@ -77,6 +85,17 @@
(dash_clock) (dash_clock)
) )
(defwindow dash_clock_bg
:stacking "bg"
:focusable "false"
:monitor 0
:geometry (geometry :x 760
:y 200
:width 400
:height 150)
(dash_clock_bg)
)
(defwindow logout (defwindow logout
:stacking "bg" :stacking "bg"
:focusable "false" :focusable "false"

View file

@ -44,7 +44,8 @@ in
exec-once = [ exec-once = [
"${pkgs.swww}/bin/swww init & sleep 0.5 & ${pkgs.swww}/bin/swww /home/nixolas/Downloads/RecountERD.png" "${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 dash_clock" "eww open bar;eww open logout;eww open restart;eww open shutdown;eww open reboot_windows"
"eww open dash_clock_bg;eww open dash_clock" # the order here matters
]; ];
input = { input = {