feat(scripts): update
This commit is contained in:
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 &
|
||||
|
||||
@@ -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" ;;
|
||||
|
||||
@@ -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!"
|
||||
}
|
||||
Reference in new issue
Block a user