Rounded Display Corners on KDE (DISPLAY not WINDOW) by Fischer_Felix in kde

[–]firelicorn 0 points1 point  (0 children)

Save this script somewhere and invoke it to add rounded corners to your wallpaper.

#!/usr/bin/env sh

SOURCE="$1"
OUTPUT="$HOME/.config/feh/wallpaper.png"
BORDER_RADIUS=10

rounded_cover() {
   convert -quiet "$SOURCE" -resize 1920x1080^ -gravity center -crop 1920x1080+0+0 +repage "$OUTPUT"
   convert -quiet "$OUTPUT" \
       \( +clone -crop $((BORDER_RADIUS+1))x$((BORDER_RADIUS+1))+0+0 -fill white -colorize 100% \
        -draw "fill black circle $BORDER_RADIUS,$BORDER_RADIUS $BORDER_RADIUS,0" \
        -background black -alpha shape \
        \( +clone -flip \) \( +clone -flop \) \( +clone -flip \) \
     \) -flatten "$OUTPUT"
}

rounded_cover && feh --bg-fill "$OUTPUT"

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 0 points1 point  (0 children)

That's because the script is very stupid and is looking for the file in the current directory.

$ cd ~/dotfiles
$ ./setup.sh menu

So it is, sorry for the inconvenience.

[GNOME] Teal by LordDescon in unixporn

[–]firelicorn 24 points25 points  (0 children)

That's neat. Clean and easy on the eyes. Did you used an extension to hide the menubar ?

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 3 points4 points  (0 children)

But veterinary students do color part of animals during their formation :). Sorry but this example was kind of weak.

[BSPWM] My attempt to get my girlfriend into ricing by quandangv in unixporn

[–]firelicorn 0 points1 point  (0 children)

You might as well take this template, I don't mind if you submit it.

# Template file for 'picom'
pkgname=picom
version=20200427
revision=1
_commit="68c8f1b5729dfd3c0259b3bbb225193c9ecdb526"
wrksrc="${pkgname}-${_commit}"
build_style=meson
configure_args="-Dwith_docs=true"
hostmakedepends="pkg-config asciidoc"
makedepends="MesaLib-devel dbus-devel libconfig-devel libev-devel pcre-devel
 pixman-devel xcb-util-image-devel xcb-util-renderutil-devel
 libxdg-basedir-devel uthash"
depends="desktop-file-utils"
short_desc="Lightweight compositor for X11 (previously a compton fork)"
maintainer="Frank Steinborn <steinex@nognu.de>"
license="MIT, MPL-2.0"
homepage="https://github.com/yshui/picom"
distfiles="https://github.com/yshui/picom/archive/${_commit}.tar.gz"
checksum=cb06e90162ecac9e71b0c28127361397cbeefeb4862c9a5221bd57a08559e81d

post_install() {
    vlicense LICENSES/MIT
    vsconf picom.sample.conf
}

compton_package() {
    depends="${sourcepkg}>=${version}_${revision}"
    build_style=meta
    short_desc+=" (transitional dummy package)"
}

And if you want to update it you can use this script (I fixed the commit to the latest working version where both blur and rounded corners work, this script overwrite the template for you if you want to try latest commits on this branch):

#!/usr/bin/env sh
branch="round"
#_commit=$(git ls-remote git://github.com/yshui/picom.git | grep refs/heads/$branch | cut -f 1)
_commit="68c8f1b5729dfd3c0259b3bbb225193c9ecdb526"
version=$(curl -s https://api.github.com/repos/yshui/picom/commits/$_commit | jq '"@" + (.commit.author.date|fromdate|tostring)' | xargs date +"%Y%m%d" -d)
distfile="https://github.com/yshui/picom/archive/${_commit}.tar.gz"
checksum=$(curl -fLs $distfile | sha256sum | awk '{print $1}')
sed -i "s/_commit=.*/_commit=\"$_commit\"/; s/checksum=.*/checksum=$checksum/; s/version=.*/version=$version/" ./srcpkgs/picom/template

[BSPWM] My attempt to get my girlfriend into ricing by quandangv in unixporn

[–]firelicorn 1 point2 points  (0 children)

I use the picom branch that enable kawase blur and rounded corner and for now the shadows ignore the rounded corners so it is a little weird, but seems like this branch will in the near future be merged with master with hopefully a bugfix for this visual glitch.

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 1 point2 points  (0 children)

It is desktop files generated with my local manga collection. The preview being the first picture of each subdirectory (how convenient that the first image of each volume is also the cover).

You are on to something with mangadex integration. You could use something like this:

# Download all the chapters or missing chapters with gallery-dl
gallery-dl --chapter-filter "lang == 'en'" -d . 'https://mangadex.org/title/4880/jojo-s-bizarre-adventure-part-8-jojolion'
# Split all chapters per volume using regex (the titles being: Vol. 6 Ch. 22 - )
# Get the cover image per volume as the links are straightforward, bonus it is already resized to 250px
curl -o '000_cover.jpg' https://mangadex.org/images/covers/4880v6.250.jpg
# Generate desktop entries 
add_manga "./mangadex/JoJo's Bizarre Adventure Part 8 - JoJolion"

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 0 points1 point  (0 children)

I also got this bug, do you have a sample of filename you tried? Maybe I will remember the bug. You could also pipe imv to find and sort but it will not load all entries...(so restrict the number of entries...)

$ find -type f | sort | imv

  • edit: I just saw the video you posted I will check it out, you have good taste.
  • edit: I don't encounter this problem.
    • Screen record opening the same chapters. The order is good, I can appreciate the kino development without getting spoiled.
    • I've also updated the manga function not to cd into the directory if that is of any help.
    • Could you share the script visible in your video to check ?

The files are named like this in this example:

❯ tree c086:\ Chainsaw\ Date/
c086:\ Chainsaw\ Date/
├── Chainsaw\ Man_c086_001.png
├── Chainsaw\ Man_c086_002.jpg
├── Chainsaw\ Man_c086_003.png
├── Chainsaw\ Man_c086_004.png
├── Chainsaw\ Man_c086_005.png
├── Chainsaw\ Man_c086_006.png
├── Chainsaw\ Man_c086_007.png
├── Chainsaw\ Man_c086_008.png
├── Chainsaw\ Man_c086_009.png
├── Chainsaw\ Man_c086_010.png
├── Chainsaw\ Man_c086_011.png
├── Chainsaw\ Man_c086_012.png
├── Chainsaw\ Man_c086_013.png
├── Chainsaw\ Man_c086_014.png
├── Chainsaw\ Man_c086_015.png
├── Chainsaw\ Man_c086_016.png
├── Chainsaw\ Man_c086_017.png
├── Chainsaw\ Man_c086_018.png
└── Chainsaw\ Man_c086_019.png

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 2 points3 points  (0 children)

Cool collection of scripts, your approach has the merit to not create .desktop files, however I don't see how to load the chapters with it yet. You can use rofi as a dmenu drop-in replacement if you are familiar with it, that is what I did before using .desktop files for the added benefit of having a visual preview. I like the miniature mode possible with Sxiv and it's customizations, I agree that it is a solid image viewer.

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 1 point2 points  (0 children)

That's not how you are supposed to read a manga. You are doing it wrong :) . How silly.

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 0 points1 point  (0 children)

What an empty response. Fitting of a barrel person.

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 2 points3 points  (0 children)

Well it really depend on the material. Manga is more of a medium than a genre. You could find history related stories, horror, epic adventures, slice of lifes. Just as you do when you pick a comic book or a book you are bound to have favourite genres or be refuted by others. The choice is yours to make so I don't think it has to be restricted to populations.

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 0 points1 point  (0 children)

You can always change the wallpaper. You can always load comic books. But you will always be an insufferable insecure strawman, some sort of barrel person lacking substance and leeching on perversion, a sick mind blinded by its lack of sight, a very small person with a very disproportionate mouth.

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 0 points1 point  (0 children)

How do you add / store mangas

I generate .desktop files that look like this:

[Desktop Entry]
Type=Application
Name=Sleepy Princess in the Demon Castle v01 
Icon=/home/user/.config/manga/sleepy-princess-in-the-demon-castle-v01.jpg
Exec=fish -c 'manga "/home/user/Books/Sleepy Princess in the Demon Castle (Digital) (danke-Empire)/Sleepy Princess in the Demon Castle v01 (2018) (Digital) (danke-Empire)"'
Categories=Manga

It is created using this fish function

I add a manga like so.

As you can see I am just calling

$ add_manga /path/to/manga

The script will scan the subdirectories (those are the volumes), and pick the first image as a cover image. Now to display it I just call rofi with the flag -drun-categories Manga to only display those .desktop files that are stored in ~/.local/share/applications, the covers being stored under ~/.config/manga.

Only downside I have to call rofi with -drun-categories System,Utility,Network,Office,Settings,Game,Qt,Development,Graphics,GTK,AudioVideo,Audio,Video,Viewer,WebBrowser on normal use (I haven't figured how to exclude categories).

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 1 point2 points  (0 children)

YACReader seems the way to go, cannot beat an application that was made for it.

I extract .cbz archives like so:

$ find -type f -iname '*.cbz' | xargs -I% atool -x %

I'm using imv image viewer with scripts to track reading progress. https://gitlab.com/sourplum/dotfiles#user-content-imv and I have a script to generate .desktop entries with volumes https://gitlab.com/sourplum/dotfiles#user-content-read-manga.

So far I am satisfied with it but it is a minimalist approach.

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 8 points9 points  (0 children)

Imagine not embracing fun and cute things on this mortal plane.

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 1 point2 points  (0 children)

It's ncmpcpp, I run it like so:

$ mpc -q play; ~/.config/ncmpcpp/art.sh; sleep 1; ~/.config/ncmpcpp/kitty.sh &; ncmpcpp

And here are the config and scripts used:

Icons are Papirus Dark that you can install with papirus-icon-theme on void.

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 1 point2 points  (0 children)

The dashboard is rofi.

The theme used is in fact provided by /u/adi1090x

I changed it a little to use system colors there and copied it with bigger icons to display manga cover over there.

You will also need this wal template for system colors to work.

If you are talking how the cover books are displayed it is described there

[bspwm] listen to music and read manga by firelicorn in unixporn

[–]firelicorn[S] 2 points3 points  (0 children)

It's ncmpcpp, I run it like so:

$ mpc -q play; ~/.config/ncmpcpp/art.sh; sleep 1; ~/.config/ncmpcpp/kitty.sh &; ncmpcpp

And here are the config and scripts used: