Compare commits

..

No commits in common. "0417c202a2a2219e4f551c342e2bdd2ba79ebbdd" and "2c7f3f5884d6bda42509e5a88af66768305b71ae" have entirely different histories.

4 changed files with 9 additions and 34 deletions

View file

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

View file

@ -4,15 +4,10 @@
}
.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;
}
.dash_clock_bg {
border-radius: 16px;
background-color: #262626;
}
.dash_clock_time {
font-size: 30px;
}

View file

@ -18,14 +18,6 @@
: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 []
(box :class "dash_clock"
:orientation "v"
@ -85,17 +77,6 @@
(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
:stacking "bg"
:focusable "false"

View file

@ -44,8 +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 dash_clock_bg;eww open dash_clock" # the order here matters
"eww open bar;eww open logout;eww open restart;eww open shutdown;eww open reboot_windows;eww open dash_clock"
];
input = {