Skip to content

srleohung/ubuntu-kiosk-mode-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ubuntu-kiosk-mode-extension

This is an extension for Ubuntu that enables kiosk mode with several features such as disabling gestures, onscreen keyboard, and the top bar. It also includes event capture and a custom configuration menu generated by custom.json.

Features

  • Disable gestures
  • Disable onscreen keyboard
  • Disable top bar
  • Event capture (default False)
  • Custom configuration (custom settings menu generated by custom.json)

Installation

To install this extension, follow these steps:

  1. Download ubuntu-kiosk-mode-extension.zip.
  2. Open a terminal.
  3. Run the following command: gnome-extensions install --force ubuntu-kiosk-mode-extension.zip to install.
  4. Run the following command: gnome-extensions enable ubuntu-kiosk-mode-extension.zip to enable.

Usage

Once the extension is installed, it will automatically enable kiosk mode with the specified features. To access the custom configuration menu, follow these steps:

  1. Open Extensions
  2. Select Ubuntu Kiosk Mode and press Enable.

Custom Configuration

The custom configuration menu is generated by custom.json, which contains a list of buttons with labels and commands. The buttons can also have submenus containing additional buttons. Here's an example of the custom.json file:

[
    {
        "label": "Button 1",
        "command": "echo 'Button 1 clicked'"
    },
    {
        "label": "Button 2",
        "command": "echo 'Button 2 clicked'"
    },
    {
        "label": "Button 3",
        "command": "echo 'Button 3 clicked'"
    },
    {
        "label": "Button 4",
        "command": "echo 'Button 4 clicked'"
    },
    {
        "label": "Button 5",
        "command": "echo 'Button 5 clicked'"
    },
    {
        "label": "Button 6",
        "items": [
            {
                "label": "Button 1",
                "command": "echo 'Button 1 clicked'"
            },
            {
                "label": "Button 2",
                "command": "echo 'Button 2 clicked'"
            },
            {
                "label": "Button 3",
                "command": "echo 'Button 3 clicked'"
            },
            {
                "label": "Button 4",
                "command": "echo 'Button 4 clicked'"
            },
            {
                "label": "Button 5",
                "command": "echo 'Button 5 clicked'"
            }
        ]
    }
]

References