Skip to content

pankajackson/lightdm-webkit-theme-lxa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LightDM Webkit2 Theme LXA

This is a custom LightDM Webkit2 theme built using React, TypeScript, styled-components, and Parcel. The theme is designed to provide a modern, responsive login interface for LightDM with an attractive user experience.

Features

  • Modern and minimalistic login form
  • Responsive design that adapts to various screen sizes
  • Customizable input fields and login button styles using styled-components
  • React and TypeScript-based architecture for better type safety and maintainability

Prerequisites

  • Node.js (>= 14.x) [developed on v23.3.0]
  • npm or yarn
  • LightDM with Webkit2 enabled (for using custom web-based themes)

Installation

  1. Clone the repository:

    git clone https://github.com/pankajackson/lightdm-webkit-theme-lxa.git
    cd lightdm-webkit-theme-lxa
  2. Install the dependencies:

    Run the following command to install the required dependencies using npm:

    npm install
  3. Build the theme:

    After installing the dependencies, you can build the project by running:

    npm run build

    This will generate the theme files in the dist directory.

  4. Copy the theme to the LightDM Webkit2 theme directory:

    After building the theme, you need to copy the contents of the dist directory to your LightDM Webkit2 theme directory (usually /usr/share/lightdm-webkit/themes/ or similar depending on your system).

    # Create theme directory
    sudo mkdir -p /usr/share/lightdm-webkit/themes/lxa
    
    # Copy theme to system
    sudo cp -r dist/* /usr/share/lightdm-webkit/themes/lxa/
  5. Setup LightDM to use webkit2 Greeter:

    Update LightDM's configuration file to use your webkit2 greeter. This file is usually located at /etc/lightdm/lightdm.conf. Add or modify the following line:

    [Seat:*]
    greeter-session=lightdm-webkit2-greeter
  6. Set Webkit2 Greeter to use the lxa theme:

    Update the Webkit2 Greeter configuration file to set the new theme name. The configuration file can be found at /etc/lightdm/lightdm-webkit2-greeter.conf. Add or modify the following line:

    [greeter]
    webkit-theme=lxa
    
  7. Restart LightDM:

    After setting the theme in LightDM's configuration, restart LightDM:

    sudo systemctl restart lightdm

Development

To start the development server and view the theme in a browser:

  1. Run the following command:

    npm run start
  2. The theme will be served locally. You can view it in your browser at http://localhost:1234.

    Note: Make sure to update the theme files in your LightDM theme directory after making any changes.

File Structure

The file structure of the project is as follows:

lightdm-webkit2-theme/
├── dist/                # Built theme files
├── node_modules/        # Installed npm dependencies
├── public/              # Static files (e.g., images, icons)
├── src/                 # Source code
│   ├── components/      # Reusable React components (e.g., InputField, LoginButton)
│   ├── App.tsx          # Main React component
│   ├── index.tsx        # Entry point for the React app
│   ├── style.css        # Global styles
│   └── index.html       # HTML template for the app
├── .gitignore           # Git ignore file
├── package.json         # Project metadata and dependencies
├── package-lock.json    # NPM lock file
└── README.md            # Project documentation

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

About

lightDM Webkit Theme

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors