Class: Spty::Command::MuteCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Spty::Command::MuteCommand
- Defined in:
- lib/spty/commands/mute_command.rb
Constant Summary collapse
- ASCRIPT_PLAYER_MUTE =
<<-EOL tell application "Spotify" set sound volume to 0 end tell EOL
Constants inherited from BaseCommand
BaseCommand::ASCRIPT_PLAYER_DETECT
Class Method Summary collapse
Methods inherited from BaseCommand
Class Method Details
.call(options, _) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/spty/commands/mute_command.rb', line 8 def self.call(, _) return unless running? Spty::AppleScriptRunner.call(ASCRIPT_PLAYER_MUTE) puts "Player muted" end |