feat: restructured some stuff for user1

This commit is contained in:
Nick 2025-03-13 17:24:51 -05:00
parent 8e918f915c
commit cfdf20a39c
76 changed files with 233 additions and 99 deletions

View file

@ -1,19 +0,0 @@
#!/usr/bin/env bash
for i in {1..5}
do
text=$(curl -s "https://wttr.in/$1?format=1")
if [[ $? == 0 ]]
then
text=$(echo "$text" | sed -E "s/\s+/ /g")
tooltip=$(curl -s "https://wttr.in/$1?format=4")
if [[ $? == 0 ]]
then
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
exit
fi
fi
sleep 2
done
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"

View file

@ -1,8 +1,13 @@
{ flake, ... }:
{ flake, config, ... }:
let
inherit (flake.config.people)
user0
user1
user2
;
user = config.home.username;
userConfig = flake.config.people.users.${user};
in
{
mainBar = {
@ -30,6 +35,7 @@ in
"disk"
"pulseaudio"
# "network"
"battery"
"clock"
];
@ -153,12 +159,29 @@ in
};
"custom/weather" = {
exec = "/home/${user0}/Files/Projects/dotfiles/modules/home/gui/desktop/wayland/waybar/config/scripts/get_weather.sh Winnipeg";
exec = "/home/${user}/.config/scripts/get_weather.sh Winnipeg";
return-type = "json";
format = "{}";
tooltip = true;
interval = 3600;
};
battery = {
format = "{icon} {capacity}%";
format-alt = "{icon} {time}";
format-charging = " {capacity}%";
format-icons = [
""
""
""
""
""
];
format-plugged = " {capacity}%";
states = {
critical = 15;
warning = 30;
};
};
};
}
# https://unicodes.jessetane.com/

View file

@ -100,6 +100,12 @@ in
#clock {
}
#battery {
font-size: ${custom.font_size};
color: #${custom.text_color};
padding-right: 10px;
}
#custom-launcher {
font-size: 20px;
color: #${custom.text_color};

View file

@ -6,7 +6,7 @@
}:
let
configPath = ./config;
settingsPath = import (configPath + /settings.nix) { inherit flake; };
settingsPath = import (configPath + /settings.nix) { inherit config flake; };
stylePath = import (configPath + /style.nix) { inherit config flake; };
in
{