Browse Source

Wallpaper Previews

pull/112/head
0xL30 2 years ago committed by GitHub
parent
commit
aca55deb9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      config/hypr/scripts/WallpaperSelect.sh
  2. 44
      config/rofi/config-wallpaper.rasi

4
config/hypr/scripts/WallpaperSelect.sh

@ -23,13 +23,13 @@ RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}"
RANDOM_PIC_NAME="${#PICS[@]}. random" RANDOM_PIC_NAME="${#PICS[@]}. random"
# Rofi command # Rofi command
rofi_command="rofi -dmenu -config ~/.config/rofi/config-wallpaper.rasi" rofi_command="rofi -show -dmenu -config ~/.config/rofi/config-wallpaper.rasi"
menu() { menu() {
for i in "${!PICS[@]}"; do for i in "${!PICS[@]}"; do
# Displaying .gif to indicate animated images # Displaying .gif to indicate animated images
if [[ -z $(echo "${PICS[$i]}" | grep .gif$) ]]; then if [[ -z $(echo "${PICS[$i]}" | grep .gif$) ]]; then
printf "$(echo "${PICS[$i]}" | cut -d. -f1)\n" printf "$(echo "${PICS[$i]}" | cut -d. -f1)\x00icon\x1f${DIR}/${PICS[$i]}\n"
else else
printf "${PICS[$i]}\n" printf "${PICS[$i]}\n"
fi fi

44
config/rofi/config-wallpaper.rasi

@ -110,26 +110,26 @@ entry {
/* ---- Listview ---- */ /* ---- Listview ---- */
listview { listview {
enabled: true; enabled: true;
columns: 2; columns: 2;
lines: 8; lines: 3;
spacing: 4px; spacing: 4px;
dynamic: true; dynamic: true;
cycle: true; cycle: true;
scrollbar: true; scrollbar: true;
layout: vertical; layout: vertical;
reverse: false; reverse: false;
fixed-height: true; fixed-height: true;
fixed-columns: false; fixed-columns: false;
background-color: transparent; background-color: transparent;
border-radius: 10px; border-radius: 10px;
} }
/* ---- Element ---- */ /* ---- Element ---- */
element { element {
enabled: true; enabled: true;
padding: 5px; padding: 5px;
margin: 2px; margin: 5px;
cursor: pointer; cursor: pointer;
background-color: transparent; background-color: transparent;
border-radius: 10px; border-radius: 10px;
@ -184,7 +184,7 @@ element alternate.active {
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 32px; size: 100px;
cursor: inherit; cursor: inherit;
} }
@ -199,19 +199,19 @@ element-text {
/*****----- Message -----*****/ /*****----- Message -----*****/
message { message {
background-color: @background; background-color: @background;
margin: 20px 0px 0px 0px; margin: 20px 0px 0px 0px;
border-radius: 10px; border-radius: 10px;
} }
textbox { textbox {
padding: 15px; padding: 15px;
background-color: @background; background-color: @background;
text-color: @foreground; text-color: @foreground;
} }
error-message { error-message {
padding: 15px; padding: 15px;
border-radius: 20px; border-radius: 20px;
background-color: @background; background-color: @background;
text-color: @foreground; text-color: @foreground;
} }

Loading…
Cancel
Save