Skip to content

Latest commit

 

History

History
 
 

calendar

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

calendar

Shows the current date and time. When clicked, a calendar popup is created.

This is similar to the rofi-calendar blocklet, but without the rofi dependency and with a slightly more advanced popup (at least in my opinion).

Dependencies

  • yad
  • xdotool (for positioning of the popup)

Installation

  • Copy the script into your directory of choice, e.g. ~/.i3blocks/blocklets
  • Give it execution permission (chmod +x calendar)
  • Add the script to your i3blocks.conf, for example like this:
[calendar]
command=$SCRIPT_DIR/calendar
interval=1
LABEL= 
DATEFMT=+%H:%M:%S
# SHORTFMT=+%H:%M:%S
HEIGHT=180
WIDTH=220
  • Add for_window [class="Yad"] floating enable to your i3 config file. Unfortunately this is neccessary because of a bug in yad. You may skip this step if you want to open the calendar popup as a normal tile instead.

Configuration

Parameters [deprecated!]:

  • -f FMT: date/time format (default +%a %d.%m.%Y %H:%M:%S)
  • -W WIDTH: width of the window (default 200)
  • -H HEIGHT: height of the window (default 200)

Additionally you may want to

  • change the placement of the popup
  • change the parameters for yad to change the appearance of the popup