GSIMPLECAL(1)

๐Ÿ“ฆ
version 2.5.4 ยท 3 versions
, in arch rolling, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐Ÿ’– GSIMPLECAL(1) ๐Ÿ’–

okay bestie, gather round, we're doing the gsimplecal manual page and honestly? it's giving lightweight calendar applet and it's a whole vibe ๐ŸŽ€


โœจ NAME โœจ

gsimplecal โ€” a lightweight calendar applet ๐Ÿ—“๏ธ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

gsimplecal [-h|--help|-v|--version|next_month|prev_month]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

This manual page documents the usage of the gsimplecal command, and no, it's not that deep, but it IS useful, so let's go ๐Ÿ’…

gsimplecal is a lightweight calendar applet. Here's the iconic part: when it's started, it first shows up โ€” and when you run it again, it closes the running instance. That's it, that's the whole trick, and it makes it so easy to integrate anywhere without needing to write some wrapper scripts. no cap ๐Ÿซถ

It was intentionally made for use with the tint2 panel, to be launched upon clock click โ€” but of course it will work with any other panel, or literally no panel at all. For example, you can bind it to some hotkey in your window manager config. main character energy fr fr โœจ

You may also configure gsimplecal to display different world time zones clocks. See the CONFIGURATION section for details. ๐ŸŒ


๐Ÿ‘‘ COMMANDS AND OPTIONS ๐Ÿ‘‘

  • -v, --version โ€” Print the program name and version to stdout, then exit with code 0. โœจ
  • -h, --help โ€” Print the short usage help to stderr, then exit with error code 2. (yeah she's dramatic, that's a 2 not a 0 ๐Ÿ’€)
  • prev_month, next_month โ€” If the program is not running, simply run it. If the program is running, change currently displayed month. ๐Ÿ”

If no options and commands are given, the program is toggled, i.e. if it is running it stops, otherwise it starts. ๐Ÿช„


๐ŸŽ€ CONFIGURATION ๐ŸŽ€

To configure the application you should manually create the configuration file. (yes bestie, manually, we're building character ๐ŸŒฑ)

The file is first searched in $XDG_CONFIG_HOME/gsimplecal/config. Usually that will be ~/.config/gsimplecal/config. ๐Ÿ“

If found, it is used. If not found, system-wide configuration is searched in all the $XDG_CONFIG_DIRS/gsimplecal/config locations. ๐Ÿ”

๐Ÿ“ Sample config file

show_calendar = 1
show_timezones = 1
mark_today = 1
show_week_numbers = 0
close_on_unfocus = 0
close_on_mouseleave = 0
external_viewer = sunbird -showdate "%Y-%m-%d"
clock_format = %a %d %b %H:%M
force_lang = en_US.utf8
mainwindow_decorated = 0
mainwindow_keep_above = 1
mainwindow_sticky = 0
mainwindow_skip_taskbar = 1
mainwindow_resizable = 0
mainwindow_position = none
mainwindow_xoffset = 0
mainwindow_yoffset = 0
clock_label = UTC
clock_tz = :UTC
clock_label = Local
clock_tz =
clock_label = BST
clock_tz = :Europe/London
clock_label = EDT
clock_tz = :US/Eastern
clock_label = CDT
clock_tz = :US/Central

๐ŸŒˆ Config options description

The options are pretty self explanatory, but here is detailed description, because we're thorough like that ๐Ÿ’–

  • show_calendar: 1 or 0, defaults to 1. Sets whether the calendar should be shown. Most users want this option to be 1. (it's the whole point bestie ๐Ÿ˜ญ)
  • show_timezones: 1 or 0, defaults to 0. Sets whether the different time zone clocks should be shown. ๐ŸŒ
  • mark_today: 1 or 0, defaults to 1. Sets whether today's date will be marked in the calendar (besides the default selection, i.e. when you click on the other day, today will remain marked somehow, e.g. in bold print). โœจ
  • show_week_numbers: 1 or 0, defaults to 0. Sets whether week numbers are shown in the calendar. ๐Ÿ”ข
  • close_on_unfocus: 1 or 0, defaults to 0. Sets whether the calendar will close if the window loses focus. Note that if mainwindow_skip_taskbar is set to 1 then the calendar window may not be given focus upon creation. ๐Ÿ‘€
  • close_on_mouseleave: 1 or 0, defaults to 0. Sets whether the calendar will close if the mouse pointer leaves the window. ๐Ÿญ
  • external_viewer: string, defaults to empty string. Command line to run when doubleclicking a date. This string is strftime'd (see man strftime for the possible substitutions) and passed to the shell. Thus you can use pipes, redirections, and whatever, I hope. ๐Ÿซ  Currently the shell is hardcoded to /bin/sh though. I hope that will do for all the users, but if you've got a trouble, please file a ticket (see REPORTING BUGS).
  • clock_format: string Sets the clocks format. Look man strftime for the possible formats. โฐ
  • force_lang: string Overrides the LANG environment variable, thus making it possible to change the first day of week, i.e. choose if Monday or Sunday goes first. Basically it's the same as running gsimplecal as
LANG=en_GB.utf8 gsimplecal

Must be one of locale -a output. ๐Ÿ—ฃ๏ธ

  • mainwindow_decorated: 1 or 0, defaults to 0. Tells your window manager to decorate or not to decorate the main window. ๐ŸชŸ
  • mainwindow_keep_above: 1 or 0, defaults to 1. Sets whether the main window should be placed on top of other windows by your window manager. โฌ†๏ธ
  • mainwindow_sticky: 1 or 0, defaults to 0. Tells your window manager to show gsimplecal on all desktops. ๐Ÿ“Œ
  • mainwindow_skip_taskbar: 1 or 0, defaults to 1. Sets whether the main window should be shown in the task list by your panel or window manager. ๐Ÿซฅ
  • mainwindow_resizable: 1 or 0, defaults to 1. Sets whether your window manager should allow the main window to be resized. If you are using a tiling window manager which supports floating windows, setting this options to 0 will most likely tell your WM not to tile the window. (Tested with XMonad and Awesome). ๐Ÿ”ฒ
  • mainwindow_position: mouse|center|none, defaults to mouse. Tells your window manager where to place the gsimplecal window:
    • mouse โ€” close to the mouse cursor position (this one is useful when you bind gsimplecal on some mouse click command);
    • center โ€” in the center of the screen;
    • none โ€” it's up to your window manager to decide, where to place the window (this one is useful when you bind gsimplecal invocation on some hotkey, so you can configure your window manager to place gsimplecal in some predefined position).
  • mainwindow_xoffset and mainwindow_yoffset: integer, default to 0. Allow for main window position fine tuning. Throw an integer at these, and it'll move the window by that number of pixels. ๐Ÿ“
  • clock_label and clock_tz: string These two options should go in pairs and must be in the order given. Each pair creates new clock. The clock_label variable sets the string to be displayed near the clock, the clock_tz sets the time zone. ๐Ÿ•ฐ๏ธ If you omit the value for clock_tz, local time will be shown. For how to specify different time zone see man timezone. Usually it is a string in the format ":{Area}/{Location}", but really is a colon followed by the relative path to file that stores timezone information. Usually the directory containing the files is /usr/share/zoneinfo, so just look at the directory listing and pick the files you need. ๐ŸŒ

๐Ÿ’… KEYBOARD ACCELERATORS ๐Ÿ’…

You may use the following keyboard accelerators while gsimplecal window has a focus (not yet configurable):

  • Escape, Ctrl+w, Ctrl+q โ€” Close the window. ๐Ÿšช
  • Return โ€” Run the external viewer on the selected day. ๐Ÿƒ
  • n โ€” Switch to the next month. โžก๏ธ
  • p โ€” Switch to the previous month. โฌ…๏ธ
  • N โ€” Jump one year forward. โญ๏ธ
  • P โ€” Jump one year backward. โฎ๏ธ
  • hjkl โ€” Vi-style dates navigation:
    • h -> left
    • j -> down
    • k -> up
    • l -> right
  • g, Home โ€” Jump to the current date. ๐Ÿ 

๐Ÿ˜ญ REPORTING BUGS ๐Ÿ˜ญ

Please, report any issues to the gsimplecal issue tracker, available at: https://github.com/dmedvinsky/gsimplecal/issues

bestie if you find a bug, don't suffer in silence, go file that ticket ๐Ÿซถ

๐ŸŒŸ AUTHOR ๐ŸŒŸ

Created by Dmitry Medvinsky et al. ๐Ÿ‘‘


๐Ÿ’œ SEE ALSO ๐Ÿ’œ

tzset(3), strftime(3)


and that's the whole page, you ate that ๐Ÿฝ๏ธโœจ this was GSIMPLECAL(1) from the General Commands Manual, dated 2014-12-12, periodt ๐Ÿ’… no cap, go run it and go touch some grass, ily ๐Ÿ’–๐ŸŒˆ๐Ÿฆ‹