aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJaKooLit <jimmilovejay@gmail.com>2023-11-04 00:31:03 +0900
committerJaKooLit <jimmilovejay@gmail.com>2023-11-04 00:31:24 +0900
commit5c92d83f04f25f2d1c4ddc253861c1db47aa577f (patch)
tree4e48a9119701d6856e8ff777ebf0814e6c42a345 /config/hypr/scripts
parent1d04a76bd093c1a6c504b65861828ff3453093aa (diff)
See changelog
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/Brightness.sh2
-rwxr-xr-xconfig/hypr/scripts/BrightnessKbd.sh2
-rwxr-xr-xconfig/hypr/scripts/Dunst.sh2
-rwxr-xr-xconfig/hypr/scripts/GameMode.sh2
-rwxr-xr-xconfig/hypr/scripts/TouchPad.sh2
-rwxr-xr-xconfig/hypr/scripts/Wlogout.sh4
-rwxr-xr-xconfig/hypr/scripts/WofiBeats.sh75
-rwxr-xr-xconfig/hypr/scripts/WofiPower.sh33
8 files changed, 45 insertions, 77 deletions
diff --git a/config/hypr/scripts/Brightness.sh b/config/hypr/scripts/Brightness.sh
index 040d1c72..72cff898 100755
--- a/config/hypr/scripts/Brightness.sh
+++ b/config/hypr/scripts/Brightness.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
iDIR="$HOME/.config/dunst/icons"
notification_timeout=1000
diff --git a/config/hypr/scripts/BrightnessKbd.sh b/config/hypr/scripts/BrightnessKbd.sh
index f48dc1c9..c69ad6a7 100755
--- a/config/hypr/scripts/BrightnessKbd.sh
+++ b/config/hypr/scripts/BrightnessKbd.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
iDIR="$HOME/.config/dunst/icons"
diff --git a/config/hypr/scripts/Dunst.sh b/config/hypr/scripts/Dunst.sh
index a440e3a1..fa8bc10d 100755
--- a/config/hypr/scripts/Dunst.sh
+++ b/config/hypr/scripts/Dunst.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
CONFIG="$HOME/.config/dunst/dunstrc"
diff --git a/config/hypr/scripts/GameMode.sh b/config/hypr/scripts/GameMode.sh
index 2d22287b..ecdcfb8b 100755
--- a/config/hypr/scripts/GameMode.sh
+++ b/config/hypr/scripts/GameMode.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/bash
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==2{print $2}')
if [ "$HYPRGAMEMODE" = 1 ] ; then
hyprctl --batch "\
diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh
index ab9f3c47..09dc563a 100755
--- a/config/hypr/scripts/TouchPad.sh
+++ b/config/hypr/scripts/TouchPad.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# NOTE: find the right device using hyprctl devices
diff --git a/config/hypr/scripts/Wlogout.sh b/config/hypr/scripts/Wlogout.sh
new file mode 100755
index 00000000..88e91826
--- /dev/null
+++ b/config/hypr/scripts/Wlogout.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+wlogout --protocol layer-shell -b 5 -T 600 -B 600 && disown
+ \ No newline at end of file
diff --git a/config/hypr/scripts/WofiBeats.sh b/config/hypr/scripts/WofiBeats.sh
index 65328547..0a3b5739 100755
--- a/config/hypr/scripts/WofiBeats.sh
+++ b/config/hypr/scripts/WofiBeats.sh
@@ -1,12 +1,10 @@
#!/bin/bash
-
## Files
CONFIG="$HOME/.config/wofi/WofiBig/config"
STYLE="$HOME/.config/wofi/style.css"
COLORS="$HOME/.config/wofi/colors"
iDIR="$HOME/.config/dunst/icons"
-
# wofi window config (in %)
WIDTH=12
HEIGHT=30
@@ -20,9 +18,8 @@ wofi_command="wofi --show dmenu \
--hide-scroll --no-actions \
--matching=fuzzy"
-
notification(){
- notify-send -h string:x-canonical-private-synchronous:sys-notify -u low -i "$iDIR/music.png" "Now Playing: Online Music"
+ notify-send -h string:x-canonical-private-synchronous:sys-notify -u normal -i "$iDIR/music.png" "Playing now: " "$@"
}
menu(){
@@ -30,60 +27,60 @@ printf "1. Lofi Girl\n"
printf "2. 96.3 Easy Rock - FM Radio\n"
printf "3. Ghibli Music (Instrumental)\n"
printf "4. Top Music 2023\n"
-printf "5. Youtube Global Top 100\n"
+printf "5. Chillhop\n"
printf "6. SmoothChill\n"
printf "7. Relaxing Music\n"
printf "8. Youtube Remix\n"
-printf "9. K-Drama-OST2"
+printf "9. Korean Drama OST"
}
main() {
choice=$(menu | ${wofi_command} | cut -d. -f1)
case $choice in
1)
- notification
+ notification "Lofi Girl â˜•ī¸đŸŽļ";
mpv "https://play.streamafrica.net/lofiradio"
return
;;
2)
- notification
- mpv "https://radio-stations-philippines.com/easy-rock"
- return
-;;
+ notification "96.3 Easy Rock đŸ“ģđŸŽļ";
+ mpv "https://radio-stations-philippines.com/easy-rock"
+ return
+ ;;
3)
- notification
- mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLNi74S754EXbrzw-IzVhpeAaMISNrzfUy&si=rqnXCZU5xoFhxfOl"
- return
- ;;
+ notification "Ghibli Music đŸŽģđŸŽļ";
+ mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLNi74S754EXbrzw-IzVhpeAaMISNrzfUy&si=rqnXCZU5xoFhxfOl"
+ return
+ ;;
4)
- notification ;
- mpv --shuffle --vid=no "https://youtube.com/playlist?list=PL6k9a6aYB2zk0qSbXR-ZEiwqgdHymsRtQ"
- return
- ;;
+ notification "Top Music 2023 â˜•ī¸đŸŽļ";
+ mpv --shuffle --vid=no "https://youtube.com/playlist?list=PL6k9a6aYB2zk0qSbXR-ZEiwqgdHymsRtQ"
+ return
+ ;;
5)
- notification ;
- mpv --shuffle --vid=no "https://youtube.com/playlist?list=PL4fGSI1pDJn5kI81J1fYWK5eZRl1zJ5kM"
- return
- ;;
+ notification "Chillhop â˜•ī¸đŸŽļ";
+ mpv "http://stream.zeno.fm/fyn8eh3h5f8uv"
+ return
+ ;;
6)
- notification ;
- mpv "https://media-ssl.musicradio.com/SmoothChill"
- return
- ;;
+ notification "SmoothChill â˜•ī¸đŸŽļ";
+ mpv "https://media-ssl.musicradio.com/SmoothChill"
+ return
+ ;;
7)
- notification ;
- mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLMIbmfP_9vb8BCxRoraJpoo4q1yMFg4CE"
- return
-;;
+ notification "Relaxing Music â˜•ī¸đŸŽļ";
+ mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLMIbmfP_9vb8BCxRoraJpoo4q1yMFg4CE"
+ return
+ ;;
8)
- notification ;
- mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLeqTkIUlrZXlSNn3tcXAa-zbo95j0iN-0"
- return
- ;;
+ notification "Youtube Remix đŸ“ģđŸŽļ";
+ mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLeqTkIUlrZXlSNn3tcXAa-zbo95j0iN-0"
+ return
+ ;;
9)
- notification ;
- mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLUge_o9AIFp4HuA-A3e3ZqENh63LuRRlQ"
- return
-;;
+ notification "Korean Drama OST đŸ“ģđŸŽļ";
+ mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLUge_o9AIFp4HuA-A3e3ZqENh63LuRRlQ"
+ return
+ ;;
esac
}
diff --git a/config/hypr/scripts/WofiPower.sh b/config/hypr/scripts/WofiPower.sh
deleted file mode 100755
index 097e5fa4..00000000
--- a/config/hypr/scripts/WofiPower.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env bash
-
-# WOFI STYLES
-CONFIG="$HOME/.config/wofi/WofiBig/config"
-STYLE="$HOME/.config/wofi/style.css"
-COLORS="$HOME/.config/wofi/colors"
-
-# Wofi window config (in %)
-WOFI_WIDTH=5
-WOFI_HEIGHT=23
-
-wofi_command="wofi --show dmenu \
- --prompt choose... \
- --conf $CONFIG --style $STYLE --color $COLORS \
- --width=$WOFI_WIDTH% --height=$WOFI_HEIGHT% \
- --cache-file=/dev/null \
- --hide-scroll --no-actions \
- --matching=fuzzy"
-
-entries=$(echo -e " Poweroff\n Reboot\n Suspend\n Lock\nī‚‹ Logout" | $wofi_command -i --dmenu | awk '{print tolower($2)}')
-
-case $entries in
- poweroff|reboot|suspend)
- systemctl $entries
- ;;
- lock)
- $HOME/.config/hypr/scripts/LockScreen.sh
- ;;
- logout)
- hyprctl dispatch exit 0
- ;;
-esac
- \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage