aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author0xL30 <72350874+0xl30@users.noreply.github.com>2023-12-31 21:23:59 +0530
committerGitHub <noreply@github.com>2023-12-31 21:23:59 +0530
commitaca55deb9e525471e0acf51525f6fd244b3f7167 (patch)
treecc66a404992c413049f4323c3919732b49d1dad1
parent46970ee1ccae1fc33e6050f6dc324a7252313c4f (diff)
Wallpaper Previews
-rwxr-xr-xconfig/hypr/scripts/WallpaperSelect.sh4
-rw-r--r--config/rofi/config-wallpaper.rasi44
2 files changed, 24 insertions, 24 deletions
diff --git a/config/hypr/scripts/WallpaperSelect.sh b/config/hypr/scripts/WallpaperSelect.sh
index 691b8fd2..5c3f2b94 100755
--- a/config/hypr/scripts/WallpaperSelect.sh
+++ b/config/hypr/scripts/WallpaperSelect.sh
@@ -23,13 +23,13 @@ RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}"
RANDOM_PIC_NAME="${#PICS[@]}. random"
# Rofi command
-rofi_command="rofi -dmenu -config ~/.config/rofi/config-wallpaper.rasi"
+rofi_command="rofi -show -dmenu -config ~/.config/rofi/config-wallpaper.rasi"
menu() {
for i in "${!PICS[@]}"; do
# Displaying .gif to indicate animated images
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
printf "${PICS[$i]}\n"
fi
diff --git a/config/rofi/config-wallpaper.rasi b/config/rofi/config-wallpaper.rasi
index da47e90d..64117687 100644
--- a/config/rofi/config-wallpaper.rasi
+++ b/config/rofi/config-wallpaper.rasi
@@ -110,26 +110,26 @@ entry {
/* ---- Listview ---- */
listview {
- enabled: true;
- columns: 2;
- lines: 8;
- spacing: 4px;
- dynamic: true;
- cycle: true;
- scrollbar: true;
- layout: vertical;
- reverse: false;
- fixed-height: true;
- fixed-columns: false;
- background-color: transparent;
- border-radius: 10px;
+ enabled: true;
+ columns: 2;
+ lines: 3;
+ spacing: 4px;
+ dynamic: true;
+ cycle: true;
+ scrollbar: true;
+ layout: vertical;
+ reverse: false;
+ fixed-height: true;
+ fixed-columns: false;
+ background-color: transparent;
+ border-radius: 10px;
}
/* ---- Element ---- */
element {
enabled: true;
padding: 5px;
- margin: 2px;
+ margin: 5px;
cursor: pointer;
background-color: transparent;
border-radius: 10px;
@@ -184,7 +184,7 @@ element alternate.active {
element-icon {
background-color: transparent;
text-color: inherit;
- size: 32px;
+ size: 100px;
cursor: inherit;
}
@@ -199,19 +199,19 @@ element-text {
/*****----- Message -----*****/
message {
background-color: @background;
- margin: 20px 0px 0px 0px;
- border-radius: 10px;
+ margin: 20px 0px 0px 0px;
+ border-radius: 10px;
}
textbox {
- padding: 15px;
+ padding: 15px;
background-color: @background;
- text-color: @foreground;
+ text-color: @foreground;
}
error-message {
- padding: 15px;
- border-radius: 20px;
+ padding: 15px;
+ border-radius: 20px;
background-color: @background;
- text-color: @foreground;
+ text-color: @foreground;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage