diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-13 10:21:47 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-13 10:21:47 +0900 |
| commit | 2a48707a57672937f659d83492a07959b4063c87 (patch) | |
| tree | 8331134f9004a160cc1bc97c6667db95e713b436 /config | |
| parent | bdd1f811cabfd8283f3b9f416d902d121f3476b7 (diff) | |
| parent | 02c91ee41e2fb9718ed8bf3da135d8028203282b (diff) | |
Merge pull request #67 from JaKooLit/development
Development to main
Diffstat (limited to 'config')
21 files changed, 65 insertions, 84 deletions
diff --git a/config/hypr/configs/ENVariables.conf b/config/hypr/configs/ENVariables.conf index 8a154249..4437c641 100644 --- a/config/hypr/configs/ENVariables.conf +++ b/config/hypr/configs/ENVariables.conf @@ -1,4 +1,4 @@ -## JaKooLit Github - https://github.com/JaKooLit +## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## #environment-variables env = CLUTTER_BACKEND,wayland diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 2005eae4..85870f74 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -1,3 +1,5 @@ +## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## + #Commands to be executed at launch $scriptsDir = $HOME/.config/hypr/scripts $lock = $scriptsDir/LockScreen.sh diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index f264cd7d..2c0b4341 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -1,3 +1,5 @@ +## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## + # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Setting variables # See laptops.conf diff --git a/config/hypr/configs/Laptops.conf b/config/hypr/configs/Laptops.conf index 58cdccde..ee67928e 100644 --- a/config/hypr/configs/Laptops.conf +++ b/config/hypr/configs/Laptops.conf @@ -1,3 +1,5 @@ +## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## + # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Setting variables # This configs are mostly for laptops. This is addemdum to Keybinds.conf diff --git a/config/hypr/configs/Monitors.conf b/config/hypr/configs/Monitors.conf index 6481942b..ac87862a 100644 --- a/config/hypr/configs/Monitors.conf +++ b/config/hypr/configs/Monitors.conf @@ -1,3 +1,5 @@ +## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## + # Monitor Configuration # See Hyprland wiki for more details # https://wiki.hyprland.org/Configuring/Monitors/ diff --git a/config/hypr/configs/Settings.conf b/config/hypr/configs/Settings.conf index a3c9768c..f2705d98 100644 --- a/config/hypr/configs/Settings.conf +++ b/config/hypr/configs/Settings.conf @@ -1,5 +1,6 @@ +## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## + ## refer to Hyprland wiki for more info https://wiki.hyprland.org/Configuring/Variables -## JaKooLit Github - https://github.com/JaKooLit source = $HOME/.cache/wal/colors-hyprland diff --git a/config/hypr/configs/WindowRules.conf b/config/hypr/configs/WindowRules.conf index e6bea4f3..f92f0cec 100644 --- a/config/hypr/configs/WindowRules.conf +++ b/config/hypr/configs/WindowRules.conf @@ -1,5 +1,6 @@ +## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more -## JaKooLit Github - https://github.com/JaKooLit + windowrule = float, org.kde.polkit-kde-authentication-agent-1 windowrule = float, nm-connection-editor|blueman-manager diff --git a/config/hypr/scripts/RofiBeats.sh b/config/hypr/scripts/RofiBeats.sh index 3a874f5f..27fbf08a 100755 --- a/config/hypr/scripts/RofiBeats.sh +++ b/config/hypr/scripts/RofiBeats.sh @@ -1,73 +1,44 @@ #!/bin/bash -## Files +# Directory for icons iDIR="$HOME/.config/dunst/icons" -notification(){ - dunstify -h string:x-canonical-private-synchronous:sys-notify -u normal -i "$iDIR/music.png" "Playing now: " "$@" -} +# Note: You can add more options below with the following format: +# ["TITLE"]="link" + +# Define menu options as an associative array +declare -A menu_options=( + ["Lofi Girl ☕️🎶"]="https://play.streamafrica.net/lofiradio" + ["96.3 Easy Rock 📻🎶"]="https://radio-stations-philippines.com/easy-rock" + ["Ghibli Music 🎻🎶"]="https://youtube.com/playlist?list=PLNi74S754EXbrzw-IzVhpeAaMISNrzfUy&si=rqnXCZU5xoFhxfOl" + ["Top Youtube Music 2023 ☕️🎶"]="https://youtube.com/playlist?list=PLDIoUOhQQPlXr63I_vwF9GD8sAKh77dWU&si=y7qNeEVFNgA-XxKy" + ["Chillhop ☕️🎶"]="http://stream.zeno.fm/fyn8eh3h5f8uv" + ["SmoothChill ☕️🎶"]="https://media-ssl.musicradio.com/SmoothChill" + ["Relaxing Music ☕️🎶"]="https://youtube.com/playlist?list=PLMIbmfP_9vb8BCxRoraJpoo4q1yMFg4CE" + ["Youtube Remix 📻🎶"]="https://youtube.com/playlist?list=PLeqTkIUlrZXlSNn3tcXAa-zbo95j0iN-0" + ["Korean Drama OST 📻🎶"]="https://youtube.com/playlist?list=PLUge_o9AIFp4HuA-A3e3ZqENh63LuRRlQ" +) -menu(){ -printf "1. Lofi Girl\n" -printf "2. 96.3 Easy Rock - FM Radio\n" -printf "3. Ghibli Music (Instrumental)\n" -printf "4. Top Youtube Music 2023\n" -printf "5. Chillhop\n" -printf "6. SmoothChill\n" -printf "7. Relaxing Music\n" -printf "8. Youtube Remix\n" -printf "9. Korean Drama OST" +# Function for displaying notifications +notification() { + dunstify -h string:x-canonical-private-synchronous:sys-notify -u normal -i "$iDIR/music.png" "Playing now: $@" } + +# Main function main() { -choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi | cut -d. -f1) + choice=$(printf "%s\n" "${!menu_options[@]}" | rofi -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi -i -p "") + + link="${menu_options[$choice]}" -case $choice in -1) - notification "Lofi Girl ☕️🎶"; - mpv "https://play.streamafrica.net/lofiradio" - return - ;; -2) - notification "96.3 Easy Rock 📻🎶"; - mpv "https://radio-stations-philippines.com/easy-rock" - return - ;; -3) - notification "Ghibli Music 🎻🎶"; - mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLNi74S754EXbrzw-IzVhpeAaMISNrzfUy&si=rqnXCZU5xoFhxfOl" - return - ;; -4) - notification "Top Youtube Music 2023 ☕️🎶"; - mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLDIoUOhQQPlXr63I_vwF9GD8sAKh77dWU&si=y7qNeEVFNgA-XxKy" - return - ;; -5) - notification "Chillhop ☕️🎶"; - mpv "http://stream.zeno.fm/fyn8eh3h5f8uv" - return - ;; -6) - notification "SmoothChill ☕️🎶"; - mpv "https://media-ssl.musicradio.com/SmoothChill" - return - ;; -7) - notification "Relaxing Music ☕️🎶"; - mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLMIbmfP_9vb8BCxRoraJpoo4q1yMFg4CE" - return - ;; -8) - notification "Youtube Remix 📻🎶"; - mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLeqTkIUlrZXlSNn3tcXAa-zbo95j0iN-0" - return - ;; -9) - notification "Korean Drama OST 📻🎶"; - mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLUge_o9AIFp4HuA-A3e3ZqENh63LuRRlQ" - return - ;; -esac + notification "$choice" + + # Check if the link is a playlist + if [[ $link == *playlist* ]]; then + mpv --shuffle --vid=no "$link" + else + mpv "$link" + fi } -pkill -f http && notify-send -h string:x-canonical-private-synchronous:sys-notify -u low -i "$iDIR/music.png" "Online Music stopped" || main +# Check if an online music process is running and send a notification, otherwise run the main function +pkill -f http && dunstify -h string:x-canonical-private-synchronous:sys-notify -u low -i "$iDIR/music.png" "Online Music stopped" || main diff --git a/config/hypr/v2.1.18 b/config/hypr/v2.1.19 index 31b3414d..31b3414d 100644 --- a/config/hypr/v2.1.18 +++ b/config/hypr/v2.1.19 diff --git a/config/rofi/config-long.rasi b/config/rofi/config-long.rasi index 28f6786a..ca6edf1a 100644 --- a/config/rofi/config-long.rasi +++ b/config/rofi/config-long.rasi @@ -24,7 +24,7 @@ configuration { /* ---- Window ---- */ window { - width: 900px; + width: 700px; /*height: 500px;*/ x-offset: 0px; y-offset: 0px; @@ -47,7 +47,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "imagebox" ]; border-radius: 12px; background-color: @background; diff --git a/config/rofi/config-waybar-layout.rasi b/config/rofi/config-waybar-layout.rasi index 65ab1f83..ff72895a 100644 --- a/config/rofi/config-waybar-layout.rasi +++ b/config/rofi/config-waybar-layout.rasi @@ -48,7 +48,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "inputbar", "listbox"]; border-radius: 12px; } diff --git a/config/rofi/config-waybar-style.rasi b/config/rofi/config-waybar-style.rasi index 9fd9aa0b..f0132ee4 100644 --- a/config/rofi/config-waybar-style.rasi +++ b/config/rofi/config-waybar-style.rasi @@ -48,7 +48,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "inputbar", "listbox"]; border-radius: 12px; } diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index cee7b929..5317feac 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -24,7 +24,7 @@ configuration { /* ---- Window ---- */ window { - width: 800px; + width: 700px; /*height: 450px;*/ x-offset: 0px; y-offset: 0px; @@ -47,7 +47,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "inputbar", "listbox" ]; border-radius: 12px; } diff --git a/config/rofi/resolution/1080p/config-long.rasi b/config/rofi/resolution/1080p/config-long.rasi index 28f6786a..ca6edf1a 100644 --- a/config/rofi/resolution/1080p/config-long.rasi +++ b/config/rofi/resolution/1080p/config-long.rasi @@ -24,7 +24,7 @@ configuration { /* ---- Window ---- */ window { - width: 900px; + width: 700px; /*height: 500px;*/ x-offset: 0px; y-offset: 0px; @@ -47,7 +47,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "imagebox" ]; border-radius: 12px; background-color: @background; diff --git a/config/rofi/resolution/1080p/config-waybar-layout.rasi b/config/rofi/resolution/1080p/config-waybar-layout.rasi index 65ab1f83..ff72895a 100644 --- a/config/rofi/resolution/1080p/config-waybar-layout.rasi +++ b/config/rofi/resolution/1080p/config-waybar-layout.rasi @@ -48,7 +48,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "inputbar", "listbox"]; border-radius: 12px; } diff --git a/config/rofi/resolution/1080p/config-waybar-style.rasi b/config/rofi/resolution/1080p/config-waybar-style.rasi index 9fd9aa0b..f0132ee4 100644 --- a/config/rofi/resolution/1080p/config-waybar-style.rasi +++ b/config/rofi/resolution/1080p/config-waybar-style.rasi @@ -48,7 +48,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "inputbar", "listbox"]; border-radius: 12px; } diff --git a/config/rofi/resolution/1080p/config.rasi b/config/rofi/resolution/1080p/config.rasi index cee7b929..5317feac 100644 --- a/config/rofi/resolution/1080p/config.rasi +++ b/config/rofi/resolution/1080p/config.rasi @@ -24,7 +24,7 @@ configuration { /* ---- Window ---- */ window { - width: 800px; + width: 700px; /*height: 450px;*/ x-offset: 0px; y-offset: 0px; @@ -47,7 +47,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "inputbar", "listbox" ]; border-radius: 12px; } diff --git a/config/rofi/resolution/1440p/config-long.rasi b/config/rofi/resolution/1440p/config-long.rasi index 5453cebe..d4c55ac7 100644 --- a/config/rofi/resolution/1440p/config-long.rasi +++ b/config/rofi/resolution/1440p/config-long.rasi @@ -24,7 +24,7 @@ configuration { /* ---- Window ---- */ window { - width: 900px; + width: 700px; /*height: 500px;*/ x-offset: 0px; y-offset: 0px; @@ -47,7 +47,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "imagebox" ]; border-radius: 12px; background-color: @background; diff --git a/config/rofi/resolution/1440p/config-waybar-layout.rasi b/config/rofi/resolution/1440p/config-waybar-layout.rasi index 8c51c0c9..b4484563 100644 --- a/config/rofi/resolution/1440p/config-waybar-layout.rasi +++ b/config/rofi/resolution/1440p/config-waybar-layout.rasi @@ -48,7 +48,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "inputbar", "listbox"]; border-radius: 12px; } diff --git a/config/rofi/resolution/1440p/config-waybar-style.rasi b/config/rofi/resolution/1440p/config-waybar-style.rasi index cd73cfe0..6700c1d6 100644 --- a/config/rofi/resolution/1440p/config-waybar-style.rasi +++ b/config/rofi/resolution/1440p/config-waybar-style.rasi @@ -48,7 +48,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "inputbar", "listbox"]; border-radius: 12px; } diff --git a/config/rofi/resolution/1440p/config.rasi b/config/rofi/resolution/1440p/config.rasi index f486a426..d092d23d 100644 --- a/config/rofi/resolution/1440p/config.rasi +++ b/config/rofi/resolution/1440p/config.rasi @@ -24,7 +24,7 @@ configuration { /* ---- Window ---- */ window { - width: 800px; + width: 700px; /*height: 450px;*/ x-offset: 0px; y-offset: 0px; @@ -47,7 +47,7 @@ mainbox { enabled: true; orientation: vertical; padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); + background-image: url("~/.config/rofi/.current_wallpaper", height); children: [ "inputbar", "listbox" ]; border-radius: 12px; } |
