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"
# 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

24
config/rofi/config-wallpaper.rasi

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

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

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

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

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

Loading…
Cancel
Save