Add meme
This commit is contained in:
parent
e1a89c87f0
commit
ed35c80a54
|
@ -155,5 +155,8 @@ def _meme [] {
|
|||
|
||||
# Play a funny 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)
|
||||
pactl set-sink-volume 0 $previous_volume
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue