From d7ff1c1dea16619a38f35536a5c00685d848abce Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 10 May 2024 02:03:31 +0900 Subject: Initial Push - Moving to Wallust from Pywal --- copy.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'copy.sh') diff --git a/copy.sh b/copy.sh index 2e94494c..6fb4cc81 100755 --- a/copy.sh +++ b/copy.sh @@ -4,7 +4,7 @@ clear wallpaper=$HOME/Pictures/wallpapers/Lofi-Urban-Nightscape.png -Waybar_Style="$HOME/.config/waybar/style/[Pywal] Chroma Tally.css" +Waybar_Style="$HOME/.config/waybar/style/[Wallust] Chroma Tally.css" # Check if running as root. If root, script will exit if [[ $EUID -eq 0 ]]; then @@ -297,11 +297,8 @@ done # symlinks for waybar style ln -sf "$Waybar_Style" "$HOME/.config/waybar/style.css" && \ -# initialize pywal to avoid config error on hyprland -wal -i $wallpaper -s -t -n -e 2>&1 | tee -a "$LOG" - -#initial symlink for Pywal Dark and Light for Rofi Themes -ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" +# initialize wallust to avoid config error on hyprland +wallust run -s $wallpaper 2>&1 | tee -a "$LOG" printf "\n%.0s" {1..2} -- cgit v1.2.3 From 928deb30486095d011b63e4cbc323131915033ab Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 10 May 2024 02:35:47 +0900 Subject: adjusted config.rasi and copy.sh --- config/rofi/config.rasi | 4 ++-- config/rofi/resolution/1080p/config.rasi | 4 ++-- config/rofi/resolution/1440p/config.rasi | 4 ++-- copy.sh | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'copy.sh') diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index 2eae75bb..4929c92c 100755 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -79,11 +79,11 @@ inputbar { entry { enabled: true; expand: false; - width: 300px; + width: 20%; padding: 10px; border-radius: 12px; background-color: @selected; - text-color: @text-selected + text-color: @text-selected; cursor: text; placeholder: "🔎 Search "; // << Search symbol placeholder-color: inherit; diff --git a/config/rofi/resolution/1080p/config.rasi b/config/rofi/resolution/1080p/config.rasi index 2eae75bb..4929c92c 100755 --- a/config/rofi/resolution/1080p/config.rasi +++ b/config/rofi/resolution/1080p/config.rasi @@ -79,11 +79,11 @@ inputbar { entry { enabled: true; expand: false; - width: 300px; + width: 20%; padding: 10px; border-radius: 12px; background-color: @selected; - text-color: @text-selected + text-color: @text-selected; cursor: text; placeholder: "🔎 Search "; // << Search symbol placeholder-color: inherit; diff --git a/config/rofi/resolution/1440p/config.rasi b/config/rofi/resolution/1440p/config.rasi index 01efd1a6..68154e1b 100755 --- a/config/rofi/resolution/1440p/config.rasi +++ b/config/rofi/resolution/1440p/config.rasi @@ -79,13 +79,13 @@ inputbar { entry { enabled: true; expand: false; - width: 300px; + width: 18%; padding: 10px; border-radius: 12px; background-color: @selected; text-color: @text-selected; cursor: text; - placeholder: " Search "; // << Search symbol + placeholder: "🔍 Search "; // << Search symbol placeholder-color: inherit; } diff --git a/copy.sh b/copy.sh index 6fb4cc81..9ab32b07 100755 --- a/copy.sh +++ b/copy.sh @@ -209,7 +209,7 @@ get_backup_dirname() { echo "back-up_${timestamp}" } -for DIR in btop cava hypr kitty Kvantum qt5ct qt6ct rofi swappy swaync wal waybar wlogout; do +for DIR in ags btop cava hypr kitty Kvantum qt5ct qt6ct rofi swappy swaync wallust waybar wlogout; do DIRPATH=~/.config/"$DIR" if [ -d "$DIRPATH" ]; then echo -e "${NOTE} - Config for $DIR found, attempting to back up." -- cgit v1.2.3 From 0a59d4b9fd14384c5f726504d363ccd2cb213d09 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 13 May 2024 01:25:37 +0900 Subject: updated rofi.beats. initial boot, wallpaper copy.sh in preparation for the upcomming release --- .editorconfig | 2 +- config/hypr/UserScripts/RofiBeats.sh | 52 +++++++++++++++++++---------------- config/hypr/initial-boot.sh | 8 +++--- copy.sh | 6 ++-- wallpapers/Anime-Landscape2.png | Bin 7704488 -> 0 bytes wallpapers/Fantasy-Waterfall.png | Bin 0 -> 12428942 bytes 6 files changed, 37 insertions(+), 31 deletions(-) delete mode 100644 wallpapers/Anime-Landscape2.png create mode 100644 wallpapers/Fantasy-Waterfall.png (limited to 'copy.sh') diff --git a/.editorconfig b/.editorconfig index f8e72805..5644fbb2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,5 @@ root = true [*] indent_style = space -indent_size = 4 +indent_size = 2 diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index c6fbb06d..76634a1a 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/config/hypr/UserScripts/RofiBeats.sh @@ -1,18 +1,10 @@ #!/bin/bash -# Directory for icons -iDIR="$HOME/.config/swaync/icons" - # Directory music folder -mDIR="$HOME/Music/*" +mDIR="$HOME/Music/" -# Local Music -declare -A local_music -# Populate the menu_options array with music files from the Music folder -for file in $mDIR; do - filename=$(basename "$file") - local_music["$filename"]="$file" -done +# Directory for icons +iDIR="$HOME/.config/swaync/icons" # Online Stations declare -A online_music=( @@ -30,6 +22,17 @@ declare -A online_music=( ["Korean Drama OST 📻🎶"]="https://youtube.com/playlist?list=PLUge_o9AIFp4HuA-A3e3ZqENh63LuRRlQ" ) +# Local Music +# Populate local_music array with files from music directory and subdirectories +populate_local_music() { + local_music=() + filenames=() + while IFS= read -r file; do + local_music+=("$file") + filenames+=("$(basename "$file")") + done < <(find "$mDIR" -type f \( -iname "*.mp3" -o -iname "*.flac" -o -iname "*.wav" -o -iname "*.ogg" \)) +} + # Function for displaying notifications notification() { notify-send -u normal -i "$iDIR/music.png" "Playing: $@" @@ -37,26 +40,30 @@ notification() { # Main function for playing local music play_local_music() { + populate_local_music + # Prompt the user to select a song - choice=$(printf "%s\n" "${!local_music[@]}" | rofi -i -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi -p "Local Music") + choice=$(printf "%s\n" "${filenames[@]}" | rofi -i -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi -p "Local Music") if [ -z "$choice" ]; then exit 1 fi - file="${local_music[$choice]}" + # Find the corresponding file path based on user's choice + for (( i=0; i<"${#filenames[@]}"; i++ )); do + if [ "${filenames[$i]}" = "$choice" ]; then + file="${local_music[$i]}" + break + fi + done notification "$choice" - # Play the selected local music file using mpv and shuffle the rest - mpv --shuffle --vid=no "$file" && \ - for file in $mDIR; do - if [ "$file" != "${local_music[$choice]}" ]; then - mpv --shuffle --vid=no "$file" - fi - done + # Play the selected local music file using mpv + mpv --shuffle --vid=no "$file" } + # Main function for playing online music play_online_music() { choice=$(printf "%s\n" "${!online_music[@]}" | rofi -i -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi -p "Online Music") @@ -76,8 +83,8 @@ play_online_music() { # Check if an online music process is running and send a notification, otherwise run the main function pkill mpv && notify-send -u low -i "$iDIR/music.png" "Online Music stopped" || { - # Prompt the user to choose between local and online music - user_choice=$(printf "Play from Music Folder\nPlay from Online Stations" | rofi -dmenu -config ~/.config/rofi/config-rofi-Beats-menu.rasi -p "Select music source") +# Prompt the user to choose between local and online music +user_choice=$(printf "Play from Music Folder\nPlay from Online Stations" | rofi -dmenu -config ~/.config/rofi/config-rofi-Beats-menu.rasi -p "Select music source") case "$user_choice" in "Play from Music Folder") @@ -91,4 +98,3 @@ pkill mpv && notify-send -u low -i "$iDIR/music.png" "Online Music stopped" || { ;; esac } - diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh index 95b9e491..162ad65f 100755 --- a/config/hypr/initial-boot.sh +++ b/config/hypr/initial-boot.sh @@ -7,8 +7,8 @@ # Variables scriptsDir=$HOME/.config/hypr/scripts -wallpaper=$HOME/Pictures/wallpapers/Lofi-Urban-Nightscape.png -waybar_style="$HOME/.config/waybar/style/[Wallust] Chroma Tally.css" +wallpaper=$HOME/Pictures/wallpapers/Fantasy-Waterfall.png +waybar_style="$HOME/.config/waybar/style/[Dark] Latte-Wallust combined.css" kvantum_theme="Catppuccin-Mocha" swww="swww img" @@ -26,8 +26,8 @@ if [ ! -f ~/.config/hypr/.initial_startup_done ]; then # initiate GTK dark mode and apply icon and cursor theme gsettings set org.gnome.desktop.interface color-scheme prefer-dark > /dev/null 2>&1 & - gsettings set org.gnome.desktop.interface gtk-theme Tokyonight-Dark-BL-LB > /dev/null 2>&1 & - gsettings set org.gnome.desktop.interface icon-theme Tokyonight-Dark > /dev/null 2>&1 & + gsettings set org.gnome.desktop.interface gtk-theme Tokyonight-Dark-Moon-BL-LB > /dev/null 2>&1 & + gsettings set org.gnome.desktop.interface icon-theme Flat-Remix-Blue-Dark > /dev/null 2>&1 & gsettings set org.gnome.desktop.interface cursor-theme Bibata-Modern-Ice > /dev/null 2>&1 & gsettings set org.gnome.desktop.interface cursor-size 24 > /dev/null 2>&1 & diff --git a/copy.sh b/copy.sh index 9ab32b07..e1047f24 100755 --- a/copy.sh +++ b/copy.sh @@ -3,8 +3,8 @@ clear -wallpaper=$HOME/Pictures/wallpapers/Lofi-Urban-Nightscape.png -Waybar_Style="$HOME/.config/waybar/style/[Wallust] Chroma Tally.css" +wallpaper=$HOME/Pictures/wallpapers/Fantasy-Waterfall.png +waybar_style="$HOME/.config/waybar/style/[Dark] Latte-Wallust combined.css" # Check if running as root. If root, script will exit if [[ $EUID -eq 0 ]]; then @@ -295,7 +295,7 @@ while true; do done # symlinks for waybar style -ln -sf "$Waybar_Style" "$HOME/.config/waybar/style.css" && \ +ln -sf "$waybar_Style" "$HOME/.config/waybar/style.css" && \ # initialize wallust to avoid config error on hyprland wallust run -s $wallpaper 2>&1 | tee -a "$LOG" diff --git a/wallpapers/Anime-Landscape2.png b/wallpapers/Anime-Landscape2.png deleted file mode 100644 index c8681762..00000000 Binary files a/wallpapers/Anime-Landscape2.png and /dev/null differ diff --git a/wallpapers/Fantasy-Waterfall.png b/wallpapers/Fantasy-Waterfall.png new file mode 100644 index 00000000..91c58a47 Binary files /dev/null and b/wallpapers/Fantasy-Waterfall.png differ -- cgit v1.2.3 From ea93a71cf6ac92041f00168e040cdc22882047b7 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 13 May 2024 01:33:50 +0900 Subject: minor tweak to copy.sh --- copy.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'copy.sh') diff --git a/copy.sh b/copy.sh index e1047f24..83e06f33 100755 --- a/copy.sh +++ b/copy.sh @@ -244,7 +244,7 @@ chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" chmod +x ~/.config/hypr/UserScripts/* 2>&1 | tee -a "$LOG" # Set executable for initial-boot.sh chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" -printf "\n%.0s" {1..3} +printf "\n%.0s" {1..2} # Detect machine type and set Waybar configurations accordingly, logging the output if hostnamectl | grep -q 'Chassis: desktop'; then @@ -259,8 +259,6 @@ else rm -r "$HOME/.config/waybar/configs/[TOP] Default_v2" 2>&1 | tee -a "$LOG" fi -printf "\n%.0s" {1..2} - # additional wallpapers echo "$(tput setaf 6) By default only a few wallpapers are copied...$(tput sgr0)" printf "\n%.0s" {1..2} -- cgit v1.2.3