aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/Sounds.sh
blob: 6bec1ea34f3373e82e6c6ab51f74e03904fbcc26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */  ##
# This script is used to play system sounds.

# Set the directory for system sounds.
sDIR="/usr/share/sounds/freedesktop/stereo"

# Set to true to mute the system sounds.
muted=false

if [[ "$muted" = true ]]; then
	exit 0
fi

if [[ "$1" == "--shutter" ]]; then
	pw-play "$sDIR/camera-shutter.oga"
elif [[ "$1" == "--volume" ]]; then
	pw-play "$sDIR/audio-volume-change.oga"
fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage