This commit is contained in:
Thomas Forgione 2024-03-29 14:15:36 +01:00
parent e1a89c87f0
commit ed35c80a54
1 changed files with 3 additions and 0 deletions

View File

@ -155,5 +155,8 @@ def _meme [] {
# Play a funny meme # Play a funny meme
def m [arg: string@_meme] { def m [arg: string@_meme] {
let previous_volume = (pactl get-sink-volume 0 | split row ' ' | filter { $in != "" } | get 4)
pactl set-sink-volume 0 100%
mpv (glob ($env.HOME + '/Videos/Memes/' + $arg + '.*') | get 0) mpv (glob ($env.HOME + '/Videos/Memes/' + $arg + '.*') | get 0)
pactl set-sink-volume 0 $previous_volume
} }