gohome

command module
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GoHome

Util to show current worktime and possible leave times with Matrix integration.

Fork of sbreitf1/gohome with support for the new Matrix login page (login.jsf) and configurable weekly working hours.

example view of current worktime

Getting started

To download and install the utility execute the following commands:

go install github.com/Artx069/gohome@latest

Now start it with gohome from command line.

You will probably be asked to enter a Matrix host. Paste the same host you visit in your browser (including protocol and path) here. Finally, you need to enter your Matrix credentials.

Login example

These values are stored in ~/.config/gohome (XDG compatible) and are used in all following runs. You can enter an empty password here to only store host and username. You will be prompted for your password on every run.

Old configs in ~/.gohome will be automatically migrated.

User Config

You can edit your user settings in ~/.config/gohome/userconfig.json. Following values are available:

Key Description
WeeklyHours Contractual working hours per week, e.g. 36. The daily target is derived as WeeklyHours / WorkDays.
WorkDays Working days per week (default 5).
TargetTime A target time as provided by parameter -t in format 08:00. Ignored when WeeklyHours is set.

Set your weekly hours from the command line:

gohome set workhours=36            # 36h / 5 days -> daily target 07:12
gohome set workhours=30 workdays=4 # 30h / 4 days -> daily target 07:30
gohome set workhours=              # reset

Your overtime for the day and the resulting flexi-time balance are calculated against this daily target. The parameter -t still overrides it for a single run.

Use parameter --save-config to persist command line parameters in user config.

Extensions

Thanks

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址