/ de-omarchy / bin / omarchy-audio-source-switch
swadhinbiswas Initial de-omarchy: Omarchy UI layer for Arch-based distros · 8/22/2026
9f393b2
21 lines · 492 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# omarchy:summary=Cycle to the next media source and transfer playback when the current source is playing
# omarchy:args=[next|previous]
# omarchy:examples=omarchy audio source switch | omarchy-audio-source-switch previous

direction="${1:-next}"

case "$direction" in
  next)
    omarchy-shell media sourceSwitch
    ;;
  previous)
    omarchy-shell media sourceSwitchPrevious
    ;;
  *)
    echo "Usage: omarchy-audio-source-switch [next|previous]" >&2
    exit 1
    ;;
esac