refactor: hypr
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
SOUND_DIR="$HOME/.config/hypr/sound"
|
||||
PLAYER="play"
|
||||
VOLUME="0.1"
|
||||
@@ -11,7 +10,7 @@ declare -A SOUND_MAP=(
|
||||
["activelayout"]="popup.wav"
|
||||
["fullscreen"]="fullscreen.wav"
|
||||
["openwindow"]="open.mp3"
|
||||
["closewindow"]="popup.wav"
|
||||
["closewindow"]="close_2.wav"
|
||||
["movewindow"]="popup.wav"
|
||||
["changefloatingmode"]="float.wav"
|
||||
)
|
||||
@@ -39,6 +38,9 @@ declare -A COOLDOWN_TIMERS=()
|
||||
|
||||
mkdir -p "$SOUND_DIR"
|
||||
|
||||
cp -r $SOUND_DIR "/tmp/hypr-sound"
|
||||
SOUND_DIR="/tmp/hypr-sound"
|
||||
|
||||
log() {
|
||||
if [ $DEBUG -eq 1 ]; then
|
||||
echo "[$(date '+%H:%M:%S')] $1" >&2
|
||||
|
||||
Reference in New Issue
Block a user