blacktea_extract

making_my_first_plugin

squeekboard toggle

Yesterday I made my first plugin for noctalia-shell (Noctalia). It’s a plugin/ bar widget that adds a bar widget to toggle the Squeekboard on-screen keyboard. Works with 2-in-1 Linux devices.

Features

How it works

The widget uses gsettings to read and write the GNOME accessibility setting org.gnome.desktop.a11y.applications screen-keyboard-enabled, which controls Squeekboard’s visibility. It continuously monitors this setting, so manual toggles and automated tablet-mode events stay in sync.

Requirements

Tested on

Tablet Mode (2-in-1 Laptops)

This widget complements automated tablet-mode switching. Configure Niri’s switch-events in ~/.config/niri/config.kdl to auto-toggle the keyboard:

switch-events {
    tablet-mode-on { spawn "bash" "-c" "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true"; }
    tablet-mode-off { spawn "bash" "-c" "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false"; }
}

The widget will reflect these changes in real-time without conflicts. Manual toggles via the widget work independently of tablet-mode automation.