mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-24 13:45:29 -08:00
Compare commits
7 commits
2c7f3f5884
...
0417c202a2
Author | SHA1 | Date | |
---|---|---|---|
0417c202a2 | |||
aa716f0e35 | |||
edd11b7337 | |||
c7bfdfd8d8 | |||
3f0205775c | |||
769c087ebd | |||
ebcf20d616 |
4 changed files with 34 additions and 9 deletions
14
flake.lock
14
flake.lock
|
@ -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": {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue