This commit is contained in:
Stephan Raabe 2024-04-03 11:10:16 +02:00
parent 2e70df898a
commit f0761aed82
6 changed files with 17 additions and 6 deletions

View File

@ -1 +1 @@
2.8.4RC3
2.8.4

View File

@ -1,10 +1,8 @@
# ML4W Dotfiles 2.8.4 RC3
# ML4W Dotfiles 2.8.4
An advanced configuration of Hyprland and Qtile for Arch Linux based distributions. This package includes an installation script to install and setup the required components.
[![Screenshot](screenshots/v283/screenshot-283-2.png "Title Text")](screenshots/v283/screenshot-283-2.png)
You can find the overview video (Version 2.8.3) on Youtube: [ML4W Dotfiles 2.8.3](https://youtu.be/zM2AYue0o8s)
[![Screenshot](screenshots/v284/screenshot-284-1.png "Title Text")](screenshots/v283/screenshot-284-1.png)
The ML4W Dotfiles are available as
@ -184,7 +182,7 @@ All keybindings for Hyprland with right mouse click on Apps in waybar or here:
# Hyprland
<a href="https://gitlab.com/stephan-raabe/dotfiles/-/blob/main/screenshots/v28/screenshot-28-1.png?ref_type=heads" target="_blank"><img src="screenshots/v28/screenshot-28-1.png" /></a>
<a href="https://gitlab.com/stephan-raabe/dotfiles/-/blob/main/screenshots/v284/screenshot-284-1.png?ref_type=heads" target="_blank"><img src="screenshots/v284/screenshot-284-1.png" /></a>
<a href="https://gitlab.com/stephan-raabe/dotfiles/-/blob/main/screenshots/v28/screenshot-28-2.png?ref_type=heads" target="_blank"><img src="screenshots/v28/screenshot-28-2.png" /></a>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 KiB

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

View File

@ -18,6 +18,7 @@ themes_path="$HOME/dotfiles/waybar/themes"
# -----------------------------------------------------
listThemes=""
listNames=""
listNames2=""
# -----------------------------------------------------
# Read theme folder
@ -35,8 +36,10 @@ do
if [ -f $themes_path$result/config.sh ]; then
source $themes_path$result/config.sh
listNames+="$theme_name\n"
listNames2+="$theme_name~"
else
listNames+="/${arrThemes[1]};$result\n"
listNames2+="/${arrThemes[1]};$result~"
fi
fi
fi
@ -49,6 +52,15 @@ done
listNames=${listNames::-2}
choice=$(echo -e "$listNames" | rofi -dmenu -replace -i -config ~/dotfiles/rofi/config-themes.rasi -no-show-icons -width 30 -p "Themes" -format i)
# Set the IFS variable to the desired delimiter
IFS="~"
# Input string to be split
input=$listNames2
# Use the read command to split the input string
read -ra array <<< "$input"
# Iterate over the elements of the array
count=1
# -----------------------------------------------------
# Set new theme by writing the theme information to ~/.cache/.themestyle.sh
# -----------------------------------------------------
@ -56,4 +68,5 @@ if [ "$choice" ]; then
echo "Loading waybar theme..."
echo "${listThemes[$choice+1]}" > ~/.cache/.themestyle.sh
~/dotfiles/waybar/launch.sh
notify-send "Waybar Theme changed" "to ${array[$choice]}"
fi