raga राग
a Vyom tool

raga

राग · “melody”

Search YouTube and play: music straight into MPD's queue (rmpc), or a video in mpv. Thumbnails, durations, channels.

नाहं वसामि वैकुण्ठे योगिनां हृदये न च ।
मद्भक्ता यत्र गायन्ति तत्र तिष्ठामि नारद ॥

I live not in Vaikuṇṭha, nor in the hearts of yogis; where those who love me sing, there I stay, Nārada. Attributed to the Padma Purāṇa (Kārttika-māhātmya); quoted in Hari-bhakti-vilāsa 8.284
v0.3.0 latest7 releases3 decisions recordedMIT license

raga searching YouTube for lofi beats: results with thumbnails, channels, views and lengths, and the picked one's preview with Play music and Watch video

Raga (राग) is Sanskrit for "melody": the melody you were looking for.

raga is youTube music and video 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 music-search.py.

#Features

#Install

#Requirements

#Install

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

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

bindsym $mod+<key> exec vyom raga

#Update and uninstall

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

#Usage

Open it with vyom raga (or your key). It opens in insert mode: type to search. Esc goes to normal mode, where every key is a command and Space is the leader (a strip shows what comes next); i or / types again. The footer always shows the keys for what's selected.

Vyom's keys work too (every vim tool has them): ? and Space ? list every key, Space Space is the palette, j / k move, gg / G jump, / searches again, H / L switch tabs, q closes, Space u f is fullscreen, Esc steps back.

Insert mode (typing; raga opens in it)

KeyAction
EnterPlay the selected result (music: in nāda, or MPD via rmpc; video: in mpv)
Shift+EnterPlay it the other way (as video / as music)
Ctrl+EnterAdd the music to the queue without playing it (on either tab)

Normal mode

KeyAction
EnterPlay the selected result (music: in nāda, or MPD via rmpc; video: in mpv)
oPlay it the other way (as video / as music)
y yCopy the selected result's YouTube link

Leader (Space)

KeyAction
Space t m / Space t vSwitch to Music / Video
Space a qAdd the music to the queue without playing it
Space o bOpen the selected result on YouTube in the browser
Space y yCopy the selected result's YouTube link
Space y tCopy the selected result's title
Space rSearch YouTube again (skips what's remembered for this search)

#Configuration

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

SettingDefaultWhat it does
modemusicMusic or video to start in
nada_commandnadaThe music player music goes to (empty: use rmpc)
player_command(none)With rmpc: opened after music starts (e.g. your rmpc launcher)

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 (this one)राग, melodyYouTube music and video
mudraमुद्रा, gestureKeybinding search
urjaऊर्जा, energyThe battery at a glance
vishramविश्राम, 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.