Run Digital Clock as a Clock Overlay for Bazzite / Aurora (KDE Plasma)

I was looking up for a clock overlay, the closest thing I could find was someone mentioning you can use plasmawindowed to run Digital Clock applet on its own window in a Manjaro Forum post. So I just post my config so people can copy-paste / download it.

View Screenshot:

Fullscreen in-game:

Installing

  1. Click Code > Download zip, then extract the files.

  2. Copy plasmawindowed-clockoverlay.desktop to:

  • /home/$USER/.config/autostart/ (to run at Desktop Mode / KDE Plasma startup);
  • /home/$USER/.local/share/applications/ (for App Launcher/Start Menu); and/or
  • /home/$USER/Desktop (for Desktop access).

Double click it to run immediately (or copy-paste the Exec command to terminal).

(If you want to change to 24-hours, do it now – click it and open its setting – as it has its own setting separate from any existing clock widgets)

  1. Open System Settings, and search for rules which should show Window Rules under Apps & Windows > Window Management. Click Import and open clockoverlay.kwinrule.
Show Image

(Alternatively, you can manually copy paste it to /home/$USER/.config/kwinrulesrc or you can manually configure the window rules yourself using Detect Window Property in that setting menu.)

Show Image

  1. Edit the settings as needed, such as whether it skips pager (Overview) and if it is Closeable. I don’t recommend disabling Accept Focus - I couldn’t find a way to reject click/touch inputs and dismissing the calendar menu can be annoying with it). The window position is set to Remember so you can use Meta + Click and Drag to move it to a more convenient position.
Show Image

Manual Install

If you rather copy-paste the raw texts, here are the contents:

Expand

  • plasmawindowed-clockoverlay.desktop:
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=plasmawindowed org.kde.plasma.digitalclock '>' /dev/null '2>&1'
GenericName[en_US]=
GenericName=
Icon=
MimeType=
Name[en_US]=plasmawindowed
Name=plasmawindowed
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
  • clockoverlay.kwinrule to add to .config/kwinrulesrc:
[Window settings for Digital Clock]
Description=Window settings for Digital Clock
above=true
aboverule=2
acceptfocusrule=1
closeablerule=2
desktops=\\0
desktopsrule=2
ignoregeometry=true
ignoregeometryrule=2
layer=overlay
layerrule=2
noborder=true
noborderrule=2
opacityactive=30
opacityactiverule=2
opacityinactive=30
opacityinactiverule=2
position=1421,82
positionrule=4
size=70,99
sizerule=2
skippager=true
skippagerrule=2
skipswitcher=true
skipswitcherrule=2
skiptaskbar=true
skiptaskbarrule=2
title=Digital Clock
wmclass=plasmawindowed org.kde.plasmawindowed
wmclasscomplete=true
wmclassmatch=1

Credits and Links