Browse Source

update wallpaper select

pull/116/head
JaKooLit 2 years ago
parent
commit
528f2cde09
  1. 4
      config/hypr/scripts/WallpaperSelect.sh
  2. 24
      config/rofi/config-wallpaper.rasi
  3. 24
      config/rofi/resolution/1080p/config-wallpaper.rasi
  4. 50
      config/rofi/resolution/1440p/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

24
config/rofi/config-wallpaper.rasi

@ -24,7 +24,7 @@ configuration {
/* ---- Window ---- */ /* ---- Window ---- */
window { window {
width: 800px; width: 700px;
/*height: 450px;*/ /*height: 450px;*/
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
@ -48,10 +48,10 @@ mainbox {
enabled: true; enabled: true;
orientation: horizontal; orientation: horizontal;
padding: 8px; padding: 8px;
background-image: url("~/.config/rofi/.current_wallpaper", width); /*background-image: url("~/.config/rofi/.current_wallpaper", width);*/
children: [ "imagebox"]; children: [ "imagebox"];
border-radius: 12px; border-radius: 12px;
background-color: @background; background-color: @active-background;
} }
/* ---- Imagebox ---- */ /* ---- Imagebox ---- */
@ -111,8 +111,8 @@ entry {
/* ---- Listview ---- */ /* ---- Listview ---- */
listview { listview {
enabled: true; enabled: true;
columns: 2; columns: 4;
lines: 8; lines: 3;
spacing: 4px; spacing: 4px;
dynamic: true; dynamic: true;
cycle: true; cycle: true;
@ -182,18 +182,18 @@ element alternate.active {
} }
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 32px; size: 150px;
cursor: inherit; cursor: inherit;
horizontal-align: 0.5;
} }
element-text { element-text {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: transparent;
cursor: inherit; cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
} }
/*****----- Message -----*****/ /*****----- Message -----*****/

24
config/rofi/resolution/1080p/config-wallpaper.rasi

@ -24,7 +24,7 @@ configuration {
/* ---- Window ---- */ /* ---- Window ---- */
window { window {
width: 800px; width: 700px;
/*height: 450px;*/ /*height: 450px;*/
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
@ -48,10 +48,10 @@ mainbox {
enabled: true; enabled: true;
orientation: horizontal; orientation: horizontal;
padding: 8px; padding: 8px;
background-image: url("~/.config/rofi/.current_wallpaper", width); /*background-image: url("~/.config/rofi/.current_wallpaper", width);*/
children: [ "imagebox"]; children: [ "imagebox"];
border-radius: 12px; border-radius: 12px;
background-color: @background; background-color: @active-background;
} }
/* ---- Imagebox ---- */ /* ---- Imagebox ---- */
@ -111,8 +111,8 @@ entry {
/* ---- Listview ---- */ /* ---- Listview ---- */
listview { listview {
enabled: true; enabled: true;
columns: 2; columns: 4;
lines: 8; lines: 3;
spacing: 4px; spacing: 4px;
dynamic: true; dynamic: true;
cycle: true; cycle: true;
@ -182,18 +182,18 @@ element alternate.active {
} }
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 32px; size: 150px;
cursor: inherit; cursor: inherit;
horizontal-align: 0.5;
} }
element-text { element-text {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: transparent;
cursor: inherit; cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
} }
/*****----- Message -----*****/ /*****----- Message -----*****/

50
config/rofi/resolution/1440p/config-wallpaper.rasi

@ -3,19 +3,19 @@
/* ---- Configuration ---- */ /* ---- Configuration ---- */
configuration { configuration {
modi: "drun,run"; modi: "drun,run";
font: "Fira Code SemiBold 14"; font: "Fira Code SemiBold 14";
show-icons: true; show-icons: true;
display-drun: ""; display-drun: "";
display-run: ""; display-run: "";
display-filebrowser: ""; display-filebrowser: "";
display-window: ""; display-window: "";
drun-display-format: "{name}"; drun-display-format: "{name}";
hover-select: true; hover-select: true;
me-select-entry: "MouseSecondary"; me-select-entry: "MouseSecondary";
me-accept-entry: "MousePrimary"; me-accept-entry: "MousePrimary";
window-format: "{w} · {c} · {t}"; window-format: "{w} · {c} · {t}";
dpi: 1; dpi: 1;
} }
@ -24,7 +24,7 @@ configuration {
/* ---- Window ---- */ /* ---- Window ---- */
window { window {
width: 800px; width: 700px;
/*height: 450px;*/ /*height: 450px;*/
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
@ -48,10 +48,10 @@ mainbox {
enabled: true; enabled: true;
orientation: horizontal; orientation: horizontal;
padding: 8px; padding: 8px;
background-image: url("~/.config/rofi/.current_wallpaper", width); /*background-image: url("~/.config/rofi/.current_wallpaper", width);*/
children: [ "imagebox"]; children: [ "imagebox"];
border-radius: 12px; border-radius: 12px;
background-color: @background; background-color: @active-background;
} }
/* ---- Imagebox ---- */ /* ---- Imagebox ---- */
@ -111,8 +111,8 @@ entry {
/* ---- Listview ---- */ /* ---- Listview ---- */
listview { listview {
enabled: true; enabled: true;
columns: 2; columns: 4;
lines: 8; lines: 5;
spacing: 4px; spacing: 4px;
dynamic: true; dynamic: true;
cycle: true; cycle: true;
@ -182,18 +182,18 @@ element alternate.active {
} }
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 32px; size: 150px;
cursor: inherit; cursor: inherit;
horizontal-align: 0.5;
} }
element-text { element-text {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: transparent;
cursor: inherit; cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
} }
/*****----- Message -----*****/ /*****----- Message -----*****/

Loading…
Cancel
Save