mirror of
https://github.com/flickowoa/dotfiles.git
synced 2026-04-06 00:32:09 +02:00
add hq bg option
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
@define-color c0 #1b3c46;
|
||||
@define-color c1 #9DBAD8;
|
||||
@define-color c2 #DABAC8;
|
||||
@define-color c3 #B2C2DE;
|
||||
@define-color c4 #B4C6E3;
|
||||
@define-color c5 #D5C7DA;
|
||||
@define-color c6 #E6C9D5;
|
||||
@define-color c7 #dedde8;
|
||||
@define-color c8 #9b9aa2;
|
||||
@define-color c9 #9DBAD8;
|
||||
@define-color c10 #DABAC8;
|
||||
@define-color c11 #B2C2DE;
|
||||
@define-color c12 #B4C6E3;
|
||||
@define-color c13 #D5C7DA;
|
||||
@define-color c14 #E6C9D5;
|
||||
@define-color c15 #dedde8;
|
||||
@define-color cbackground #1b3c46;
|
||||
@define-color cforeground #dedde8;
|
||||
@define-color ccursor #dedde8;
|
||||
@define-color c0 #0c0a0a;
|
||||
@define-color c1 #887077;
|
||||
@define-color c2 #757985;
|
||||
@define-color c3 #927A85;
|
||||
@define-color c4 #A57E88;
|
||||
@define-color c5 #7A8592;
|
||||
@define-color c6 #9D8E98;
|
||||
@define-color c7 #cbbcc2;
|
||||
@define-color c8 #8e8387;
|
||||
@define-color c9 #887077;
|
||||
@define-color c10 #757985;
|
||||
@define-color c11 #927A85;
|
||||
@define-color c12 #A57E88;
|
||||
@define-color c13 #7A8592;
|
||||
@define-color c14 #9D8E98;
|
||||
@define-color c15 #cbbcc2;
|
||||
@define-color cbackground #0c0a0a;
|
||||
@define-color cforeground #cbbcc2;
|
||||
@define-color ccursor #cbbcc2;
|
||||
|
||||
@@ -187,10 +187,10 @@ const Media = () => Widget.Button({
|
||||
.then(out => console.log(out))
|
||||
.catch(err => console.log(err));
|
||||
nowplaying.now_playing = "";
|
||||
// while (nowplaying.now_playing.length > 0){
|
||||
// nowplaying.now_playing = nowplaying.now_playing.slice(1,-1);
|
||||
// await new Promise(r => setTimeout(r, 50));
|
||||
// }
|
||||
while (nowplaying.now_playing.length > 0){
|
||||
nowplaying.now_playing = nowplaying.now_playing.slice(1,-1);
|
||||
await new Promise(r => setTimeout(r, 50));
|
||||
}
|
||||
}
|
||||
}],
|
||||
[nowplaying, self => {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
HQ=0
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Please provide an image"
|
||||
exit 1
|
||||
@@ -33,7 +35,13 @@ echo "Image is different"
|
||||
cp "$1" /tmp/bg.png
|
||||
|
||||
magick mogrify -fuzz 4% -trim +repage -shave 7x7 -format png /tmp/bg.png
|
||||
convert /tmp/bg.png -resize $((width / 2))x$((height / 2))^ -gravity center -extent $((width / 2))x$((height / 2)) /tmp/bg.png
|
||||
|
||||
#if HQ == 1
|
||||
if [ $HQ -eq 1 ]; then
|
||||
convert /tmp/bg.png -resize $((width))x$((height))^ -gravity center -extent $((width))x$((height)) /tmp/bg.png
|
||||
else
|
||||
convert /tmp/bg.png -resize $((width / 2))x$((height / 2))^ -gravity center -extent $((width / 2))x$((height / 2)) /tmp/bg.png
|
||||
fi
|
||||
|
||||
img_width=$(identify -format "%w" /tmp/bg.png)
|
||||
img_height=$(identify -format "%h" /tmp/bg.png)
|
||||
@@ -49,7 +57,7 @@ if [ ! -f /tmp/texture.png ]; then
|
||||
echo "texture not found"
|
||||
convert -size ${img_width}x${img_height} xc:gray +noise Random -channel A -threshold 90% /tmp/texture.png
|
||||
fi
|
||||
convert /tmp/texture.png -alpha set -channel A -evaluate set 3% /tmp/texture.png
|
||||
convert /tmp/texture.png -alpha set -channel A -evaluate set 2.5o% /tmp/texture.png
|
||||
convert /tmp/bg.png /tmp/texture.png -gravity center -compose overlay -composite /tmp/bg.png
|
||||
|
||||
$HYPRLAND_THEME/scripts/apply_wall /tmp/bg.png
|
||||
|
||||
Reference in New Issue
Block a user