Gold Ayan's Tinker Garage

What is writer deck? TLDR Distraction free writing machine, heard about this in Veronica explain channel video on Writer deck

I don't have seperate machine to use as writer so i thought why not create a seperate user when i logged in with that user i only have writing tool for me it is emacs.

After a while i came across a program called cage,

What is cage ?

In ubuntu all you need to do for installing cage

sudo apt install cage

Create a wayland session file in the following location /usr/share/wayland-sessions. I have created a file called cage-emacs.desktop with following content.

[Desktop Entry]
Name=Cage Emacs
Comment=Run Emacs as a standalone Wayland kiosk
Exec=env XKB_DEFAULT_OPTIONS="ctrl:nocaps" cage /opt/emacs29/bin/emacs
Type=Application
DesktopNames=Cage-Emacs

In Exec, i have specified

env XKB_DEFAULT_OPTIONS="ctrl:nocaps"

When i press caps it will be known as ctrl. (I got used to it)

Before i login to the system all i need to do is change the session (which will be in the bottom right in ubuntu login screen) and login in. I will be greeted with emacs. Sweeet..

Cons

  • If your program hanged then only way is to poweroff explicitly because virtual tty not worked for me inside cage so keep that in mind. I faced it one time