summaryrefslogtreecommitdiff
path: root/bash/dot-bash_aliases
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2023-10-23 08:35:37 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2023-10-23 08:35:37 +0200
commit8c33c0501c959cb791112c2b19cf9b769659ddf2 (patch)
treef91c5a8632026b1fab468c2611fda86121bc2e3a /bash/dot-bash_aliases
parente237788111c593b35acd356589632ed27f09ff9f (diff)
bash-aliases: use - instead of _ for command names
Diffstat (limited to 'bash/dot-bash_aliases')
-rw-r--r--bash/dot-bash_aliases18
1 files changed, 9 insertions, 9 deletions
diff --git a/bash/dot-bash_aliases b/bash/dot-bash_aliases
index 698ac08..74058b7 100644
--- a/bash/dot-bash_aliases
+++ b/bash/dot-bash_aliases
@@ -74,7 +74,7 @@ function audio-volume-up-db {
ffmpeg -i "$1" -filter:a "volume=$3dB" "$2"
}
alias audio_list_sources="pactl list short sources"
-function audio_record_from {
+function audio-record-from {
# https://trac.ffmpeg.org/wiki/Capture/PulseAudio
if ffmpeg -f pulse -i $1 -c:a libvorbis recording.ogg ; then
echo
@@ -82,7 +82,7 @@ function audio_record_from {
echo
fi
}
-function audio_encode_vorbis {
+function audio-encode-vorbis {
local outfile="${2%.*}".ogg
if ffmpeg -i "$1" -vn -c:a libvorbis "${outfile}" ; then
echo
@@ -92,27 +92,27 @@ function audio_encode_vorbis {
}
# Wacom mapping
-function wacom_map {
+function wacom-map {
for i in $2; do
xsetwacom --set "$1 $i" MapToOutput "$3"
done
}
-function wacom_map_intuos {
+function wacom-map-intuos {
local name="Wacom Intuos S Pen"
local opts="stylus eraser"
- wacom_map "$name" "$opts" "$1"
+ wacom-map "$name" "$opts" "$1"
local name_pad="Wacom Intuos S Pad"
local opts_pad="pad"
- wacom_map "$name_pad" "$opts_pad" "$1"
+ wacom-map "$name_pad" "$opts_pad" "$1"
}
-function wacom_map_cintiq {
+function wacom-map-cintiq {
local name_touch="Wacom Cintiq Pro 16 Touch Finger"
local opts_touch="touch"
- wacom_map "$name_touch" "$opts_touch" "$1"
+ wacom-map "$name_touch" "$opts_touch" "$1"
local name="Wacom Cintiq Pro 16 Pen"
local opts="stylus eraser"
- wacom_map "$name" "$opts" "$1"
+ wacom-map "$name" "$opts" "$1"
}