mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-13 23:43:49 +01:00
add fish functions
This commit is contained in:
parent
5ec3db6aed
commit
76729f4294
3 changed files with 17 additions and 0 deletions
4
fish/functions/extract_audio.fish
Normal file
4
fish/functions/extract_audio.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
function extract_audio
|
||||
ffmpeg -i "$argv[1]" -q:a 0 -map a "$argv[2]"
|
||||
end
|
||||
|
8
fish/functions/lights.fish
Normal file
8
fish/functions/lights.fish
Normal file
|
@ -0,0 +1,8 @@
|
|||
function lights
|
||||
set lights (huectl light get | sed '/\"id\"/!d; s/.* \"//; s/\".*//')
|
||||
|
||||
for l in $lights
|
||||
huectl light set $l $argv
|
||||
end
|
||||
end
|
||||
|
5
fish/functions/newtmp.fish
Normal file
5
fish/functions/newtmp.fish
Normal file
|
@ -0,0 +1,5 @@
|
|||
function newtmp
|
||||
set dir /tmp/(uuidgen)
|
||||
mkdircd $dir
|
||||
end
|
||||
|
Loading…
Reference in a new issue