vishram विश्राम
a Vyom tool

vishram

विश्राम · “rest”

Power menu: lock, suspend, log out, reboot, power off; one letter each, a 5-second countdown with cancel for the final ones.

युक्ताहारविहारस्य युक्तचेष्टस्य कर्मसु ।
युक्तस्वप्नावबोधस्य योगो भवति दुःखहा ॥

For one measured in food, play, work, sleep and waking, yoga ends sorrow. Bhagavad Gītā 6.17
v0.3.0 latest6 releases4 decisions recordedMIT license

vishram: power panel

Vishram (विश्राम) is Sanskrit for "rest": the rest at the end of a session: lock, suspend, power off.

vishram is the power menu for Vyom: one keyboard-driven panel that opens instantly, with live data, a preview and a key for everything. It runs on any compositor with the layer-shell protocol (sway, Hyprland, river, niri, Wayfire, labwc…). In Vayu, the desktop it was built for, it replaces nwg-bar.

#Features

#Install

#Requirements

#Install

git clone https://github.com/Theyashsawarkar/vishram ~/.local/share/vyom/plugins/vishram
vyom reload           # pick it up (or log out and in)
vyom vishram            # open it; run it again to close

Give it a key in your compositor, e.g. sway:

bindsym $mod+<key> exec vyom vishram

#Update and uninstall

git -C ~/.local/share/vyom/plugins/vishram pull && vyom reload     # update
rm -rf ~/.local/share/vyom/plugins/vishram && vyom reload          # uninstall

#Usage

Open it with vyom vishram (or your key). It's always in NORMAL mode (there's nothing to type): Lock has the focus when it opens, so Enter locks; s suspends, e logs out, b reboots and p powers off. h / l (or j / k, the arrows) move between the tiles and Enter picks the one you're on. Log out, reboot and power off count down first: Enter does it now, any other key cancels, Space included. Space alone is the leader (Space ? lists every key); it never presses a tile.

Vyom's vim keys work too: ? and Space ? list every key, Space Space is the palette, q closes, Esc steps back, Space u f is fullscreen, Space r refreshes; on a card j / k move between controls, h / l change the focused one and Enter presses it.

Keys (it's always in NORMAL mode: there's nothing to type)

KeyAction
sSuspend
eLog out (after a 5-second countdown)
bReboot (after a 5-second countdown)
pPower off (after a 5-second countdown)
EnterPick the focused action (Lock has the focus when the menu opens)

While a countdown runs

KeyAction
EnterConfirm the action now instead of waiting
EscCancel the countdown (any other key does too, Space included)

Keys that moved in this release still say where they went: r → b (reboot), L → Enter (Lock has the focus).

#Configuration

Everything is optional, in ~/.config/vyom/config.toml under [plugin.vishram]:

SettingDefaultWhat it does
lock / suspend / logout / reboot / poweroffloginctl lock-session, systemctl …The command for each
countdown5Seconds before log out / reboot / power off

Run vyom reload after editing.

#Troubleshooting

#The Vyom family

Each tool is its own repository, so you install only the ones you want:

ToolWhat it does
dvaraद्वार, gatewayThe app launcher
ganitगणित, mathematicsThe calculator and converter
smritiस्मृति, memoryClipboard history
bhavaभाव, feeling, emotionThe emoji picker
tarangतरंग, waveWi‑Fi and the hotspot
setuसेतु, bridgeBluetooth
dootदूत, messengerYour phone, through KDE Connect
patraपात्र, vesselDocker containers
akashvaniआकाशवाणी, voice from the skyNotifications
ragaराग, melodyYouTube music and video
mudraमुद्रा, gestureKeybinding search
urjaऊर्जा, energyThe battery at a glance
vishram (this one)विश्राम, restThe power menu
kendraकेन्द्र, centreQuick settings

#Contributing

Bug reports, ideas and pull requests are welcome: see CONTRIBUTING.md for the development setup and the few rules every tool follows, and CHANGELOG.md for what changed in each release. Please report security issues privately (SECURITY.md).

#License

MIT.