feat(scripts): update

This commit is contained in:
sankalp committed 2024-01-24 15:49:25 +05:45
1 parent cf61fe2dd4
commit 9bc7ab3244
3 files changed
+12 -1

No files matched your search

@@ -21,6 +21,9 @@ exec-once = $scriptsDir/Polkit.sh
# Battery Notification
exec-once = $scriptsDir/BatteryNotify.sh
# Welcome Notification
exec-once = $RunCMD welcome
# starup apps
exec-once = waybar &
exec-once = swaync &
+1 -1
View File
@@ -45,7 +45,7 @@ controls() {
case "$chosen" in
"$play") playerctl --player=mpv play && notify-send -u normal -i "$1" "▶️ Resuming music" ;;
"$pause") playerctl --player=mpv pause && notify-send -u normal -i "$1" "⏸️ Music paused" ;;
"$stop") kill $(pidof "rofi-music") && notify-send -u normal -i "$1" "🛑 Music stopped" ;;
"$stop") pkill mpv && notify-send -u normal -i "$1" "🛑 Music stopped" ;;
"$next_track") playerctl --player=mpv next && notify-send -u normal -i "$1" "⏭️ Next track playing" ;;
"$prev_track") playerctl --player=mpv previous && notify-send -u normal -i "$1" "⏮️ Previous track playing" ;;
"$increase_volume") adjust_volume 0.1 "🔊 Increasing track volume" ;;
+8
View File
@@ -178,3 +178,11 @@ disable_opaque() {
sleep 0.2
hyprctl setprop address:$(hyprctl -j activewindow | jq -r -c ".address") forceopaque 1 lock
}
welcome() {
sleep 1
name=$(whoami)
notify-send "Hello" "${name}?,you're back? welcome what will we do today!"
}