#!/usr/bin/env bash # @vicinae.schemaVersion 1 # @vicinae.title Log Out # @vicinae.mode silent # @vicinae.icon ../../icons/hicolor/scalable/apps/panama-settings.svg # @vicinae.description End the session and return to the login screen. # @vicinae.keywords ["logout", "log out", "sign out", "exit", "session"] # uwsm owns the session (see the hypr README), so it gets to end it: units stop # in order instead of being orphaned by a bare compositor exit. The dispatch is # the fallback for the plain non-uwsm session. if command -v uwsm >/dev/null 2>&1; then exec uwsm stop fi exec hyprctl dispatch exit