Skip to main content

SessionIntent

Declarative session orchestration for Linux desktops
Describe your "intents" (modes) to orchestrate application launch, workspace layout, and session state.

SessionIntent is a declarative session orchestration system for Linux desktop environments, with a focus on GNOME and Wayland. It lets you define named session modes in YAML and automatically manage applications, workspaces, and desktop state as you switch between contexts such as browsing, work, media, or focus sessions.

Instead of launching apps manually each time, you define the behavior of a session once and let SessionIntent restore it consistently.

Features

  • 🎯 Intent-based sessions - Define workflows as modes (work, browsing, gaming, …)
  • 🖥️ Multi-desktop - Provider-based support for GNOME, KDE, Hyprland, Sway, wlroots, EWMH
  • 🔋 Hardware awareness - Filter modes on battery vs AC power
  • 📝 Declarative configuration - config.yaml modes + apps.yaml registry (version: 2 schema)
  • 🔒 Safe by default - Reuse before launch; destructive actions are explicit commands
  • 🎛️ Workspace orchestration - Per-workspace app placement with optional monitor; switches wait until the app window is visible (GNOME Shell 46–51 via bundled extension)
  • 👁️ Mode preview - preview <mode> shows workspaces and apps before applying
  • 🔔 Notifications - Desktop notice on every mode switch
  • 🧩 Plugins - Drop-in hooks in ~/.config/sessionintent/plugins/
  • 🧪 Dev mode - --dev prints commands instead of executing

Quick Start

Requirements

  • Python 3.10+
  • PyYAML
  • wofi or rofi — optional, for the mode picker. Without either, SessionIntent falls back to a terminal menu.
  • A supported DE or compositor: GNOME, KDE Plasma, Hyprland, Sway, wlroots, or X11/EWMH

Installation

curl -fsSL https://raw.githubusercontent.com/fazrigading/SessionIntent/master/INSTALL.sh | bash

The script checks prerequisites, installs SessionIntent, seeds a default config, and sets up autostart.

Method 2: uv

uv tool install git+https://github.com/fazrigading/SessionIntent

To run without installing:

uvx --from git+https://github.com/fazrigading/SessionIntent sessionintent --help

Method 3: Distro packages

Fedora:

sudo dnf copr enable fazrigading/SessionIntent
sudo dnf install sessionintent -y

For Debian and Arch, there are no distro package yet. Install the dependencies, then use Method 1 or 2:

# Debian-based
sudo apt install python3-pip python3-yaml rofi
# Arch-based
sudo pacman -S python python-yaml rofi

Configuration

  1. Initialize SessionIntent. This writes a default config and installs the GNOME Shell workspace extension:

    sessionintent init
    
  2. Choose the apps you want to manage:

    sessionintent setup
    

    Your selection is saved to ~/.config/sessionintent/apps.yaml.

  3. Define your modes in ~/.config/sessionintent/config.yaml. See examples/config.example.yaml for reference.

  4. Launch a mode:

    sessionintent                    # picker (needs wofi or rofi)
    sessionintent apply browsing     # apply directly, no picker
    

Usage

# Select mode via UI (requires wofi/rofi) - default behavior
sessionintent
sessionintent select

# Apply specific mode directly (without wofi/rofi)
sessionintent apply browsing

# Preview a mode without applying
sessionintent preview browsing

# Session control
sessionintent panic        # Clear state (no app termination)
sessionintent quit         # Gracefully close managed apps
sessionintent clear        # Clear state files only
sessionintent kill         # Force kill managed apps
sessionintent suspend      # Suspend session

# Status and listing
sessionintent status       # Show current status
sessionintent list         # List available modes

# Configuration
sessionintent init         # Initialize default configs and extension
sessionintent setup        # Set up SessionIntent (scan apps)
sessionintent scan         # Rescan installed apps
sessionintent scan --force # Rescan, ignore cache
sessionintent reload       # Reload configuration
sessionintent version      # Display version information

# Global flags (come before the command)
sessionintent --dev apply work
sessionintent --backend sway apply work
sessionintent --config ~/other.yaml list

Key Files

File Purpose
~/.config/sessionintent/config.yaml User mode definitions ($XDG_CONFIG_HOME honored)
~/.config/sessionintent/apps.yaml User app registry
/usr/share/sessionintent/apps.yaml System app registry
~/.local/state/sessionintent/current Current session state ($XDG_STATE_HOME honored)

License

GPL-3.0-or-later - see LICENSE for details.

Contributing

Contributions are welcome! See CONTRIBUTING.md and docs/ROADMAP.md for details.

Acknowledgments

Inspired by window manager session management tools.

Author

Fazri Gading (Copyright 2026)

Metadata

Release files for sessionintent 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sessionintent 0.4.4
File Size Uploaded Provenance Actions
sessionintent-0.4.4.tar.gz 65.5 kB Without provenance Details for sessionintent-0.4.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sessionintent 0.4.4
File Interpreter ABI Platform Actions
sessionintent-0.4.4-py3-none-any.whl Python 3 none any Details for sessionintent-0.4.4-py3-none-any.whl

Total release size: 145.8 kB

Release files / sessionintent-0.4.4.tar.gz

Download URL sessionintent-0.4.4.tar.gz
Size 65.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d86669c81ec6bf2ceb66fcb70f54c870e8caa13b44933cd336302afa6f47cbe7
BLAKE2b-256 checksum
How to use checksums
c1be94ab5826b7019c12702ec2a15d38fcd12a30a1fa4f105672829787f56b4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / sessionintent-0.4.4-py3-none-any.whl

Download URL sessionintent-0.4.4-py3-none-any.whl
Size 80.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90637617342474c41ddfd877ed9dbd8e2365ae007f89510077030948f46ac8d4
BLAKE2b-256 checksum
How to use checksums
464a6b8a57b5b5189466b73566f4a6b003c9b80a8a58e2093ba086a097fd73ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for sessionintent 0.4.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page