diff --git a/scripts/discipline.png b/scripts/discipline.png new file mode 100644 index 0000000..743b8bd Binary files /dev/null and b/scripts/discipline.png differ diff --git a/scripts/getbacktowork.mp3 b/scripts/getbacktowork.mp3 new file mode 100644 index 0000000..454e959 Binary files /dev/null and b/scripts/getbacktowork.mp3 differ diff --git a/scripts/youtubeBlocker.sh b/scripts/youtubeBlocker.sh index b5dc90c..9a27e1f 100755 --- a/scripts/youtubeBlocker.sh +++ b/scripts/youtubeBlocker.sh @@ -12,9 +12,10 @@ handle() { case $1 in activewindow*) echo $1 - if [[ $1 == *YouTube* ]] && ! is_valid_youtube_time; then + if [[ $1 == *YouTube* || $1 == *Instagram* ]]; then hyprctl dispatch killactive - notify-send "ENOUGH, LOCK IN" + notify-send "ENOUGH, LOCK IN" "GET BACK TO WORK" -u critical -i $HOME/dotfiles/scripts/discipline.png + mpv $HOME/dotfiles/scripts/getbacktowork.mp3 fi esac }