where exactly do i put configurations?
it just says the code, do i create a python script and run it or something? im kinda confused
You can run this command and it'll show you the path:
dooit config-loc
ah thank you, also how do i change the colours i cant see anything relating to colour in the config. thanks
last question is it possible to auto sync weather? right now its just stuck at a single temperature that i got from one of the example configs
ah thank you, also how do i change the colours i cant see anything relating to colour in the config. thanks
You can create your own theme. I guess I should atleast include a bunch of themes but for now this is an options Link: https://dooit-org.github.io/dooit/configuration/theme.html
last question is it possible to auto sync weather? right now its just stuck at a single temperature that i got from one of the example configs
You can add a custom widget which updates every X seconds But it is not good for something like weather because it can block the whole app because of network latency I am thinking about restructuring the whole widget thingy. Until then you'll have to hold out. Sorry :(
hey i think im doing something wrong and some guidance would be appreciated as i dont know what im doing wrong as nothing is changing, here is my whole config and can you see maybe anything conflicting that i cant?
from dooit.ui.api import DooitAPI, subscribe from dooit.ui.api.events import Startup from rich.style import Style from dooit_extras.formatters import * from dooit_extras.bar_widgets import * from dooit_extras.scripts import * from rich.text import Text from dooit.api.theme import DooitThemeBase
class dooittheme(DooitThemeBase): _name = "dooittheme"
background1: str = "#5062A1" # Darkest
background2: str = "#4E67B1" # Lighter
background3: str = "#5071CF" # Lightest
# foreground colors
foreground1: str = "#6B89B5" # Darkest
foreground2: str = "#6291D3" # Lighter
foreground3: str = "#8DA4DB" # Lightest
# accent colors
primary: str = "#5062A1"
secondary: str = "#090D1D"
@subscribe(Startup) def setup_formatters(api: DooitAPI, _): fmt = api.formatter theme = api.vars.theme
# ------- WORKSPACES -------
format = Text(" ({}) ", style=theme.primary).markup
fmt.workspaces.description.add(description_children_count(format))
# --------- TODOS ---------
# status formatter
fmt.todos.status.add(status_icons(completed=" ", pending=" ", overdue=" "))
# urgency formatte
u_icons = {1: " ", 2: " ", 3: " ", 4: " "}
fmt.todos.urgency.add(urgency_icons(icons=u_icons))
# due formatter
fmt.todos.due.add(due_casual_format())
fmt.todos.due.add(due_icon(completed=" ", pending=" ", overdue=" "))
# description formatter
format = Text(" {completed_count}/{total_count}", style=theme.green).markup
fmt.todos.description.add(todo_description_progress(fmt=format))
fmt.todos.description.add(description_highlight_tags(fmt=" {}"))
@subscribe(Startup) def setup_bar(api: DooitAPI, _): theme = api.vars.theme
widgets = [
Mode(api),
Spacer(api, width=0),
StatusIcons(api, bg=theme.background2),
TextBox(api, text=" ", bg=theme.primary),
Clock(api, format="%I:%M %p", fg=theme.foreground3, bg=theme.background3),
]
api.bar.set(widgets)
@subscribe(Startup) def setup_dashboard(api: DooitAPI, _): from datetime import datetime
theme = api.vars.theme
now = datetime.now()
formatted_date = now.strftime(" %A, %d %b ")
header = Text(
"I alone shall stand against the darkness of my overdue tasks",
style=Style(color=theme.primary, bold=True, italic=True),
)
ascii_art = r"""
⠀⣰⣾⠁⠀⢦⣾⣤⠆⠀⠻⣧⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢠⣼⠏⠀⠀⠀⠀⣿⡇⠀⠀⠀⠈⢷⣄⠀⠀⠀⠀ ⠀⠀⢀⣸⣿⠃⠀⠀⠀⠀⠀⣿⡇⠀⠀⠀⠀⠀⢿⣧⡀⠀⠀ ⠀⢰⣾⣿⡁⠀⠀⠀⠀⠀⠀⣿⡇⠀⠀⠀⠀⠀⢀⣿⣿⠖⠀ ⠀⠀⠈⠻⣿⣦⣄⠀⠀⠀⠀⣿⡇⠀⠀⠀⢀⣴⣿⠟⠁⠀⠀ ⠀⠀⠀⠀⠈⠻⢿⣷⣄⡀⠀⣿⡇⠀⣠⣾⣿⠟⠁⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣦⣿⣧⣾⣿⠟⠁⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⢙⣿⣿⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⢀⣴⣿⣿⠟⠁⣻⣿⠈⠙⢿⣿⣦⡀⠀⠀⠀⠀ ⠀⠀⠀⢀⣴⣿⡿⠋⠀⠀⠀⣽⣿⠀⠀⠀⠙⢿⣿⣦⣄⠀⠀ ⠀⣠⣴⣿⡿⠋⠀⠀⠀⠀⠀⢼⣿⠀⠀⠀⠀⠀⠈⢻⣿⣷⣄ ⠈⠙⢿⣿⣦⣄⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⣠⣾⣿⠟⠁ ⠀⠀⠀⠙⢿⣿⣷⣄⠀⠀⠀⢸⣿⠀⠀⠀⣠⣾⣿⠟⠁⠀⠀ ⠀⠀⠀⠀⠀⠙⢻⣿⣷⡄⠀⢸⣿⠀⠀⣼⣿⣿⠃⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠈⠻⢿⣿⣦⣸⣿⣠⣾⣿⠟⠁⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢿⣿⣿⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀ """
items = [
header,
"",
Text(ascii_art, style=api.vars.theme.primary),
"",
Text(
formatted_date,
style=Style(color=theme.secondary, bold=True, italic=True),
),
]
api.dashboard.set(items)
What error are you getting? I see that you didn't paste the whole config correctly. If its the same as one of the example configs, did you install dooit-extras?
Also, I'm thinking about moving to a much much simpler toml config. Probably get that done by this weekend so the config will be whole lot easier
yes dooit exxtras is installed, im not getting an error butit just is staying at the colour in the dog config one i forgot what its called, i thought i copied it all but i guess not but as clear i have made some changes, but i dont know why that wouldnt change it
Can you paste a screenshot perhaps?
not sure what u mena but heres a screenshot of my dooit