So that crontab will read my logic file all the time?
have you checked out sway’s grimshot scripts btw?
If I want to schedule
Something for every second Monday for 365 days or every 4th Saturday for 365 days
https://crontab-generator.org/
https://crontab.guru/
If I want to schedule
Something for every second Monday for 365 days or every 4th Saturday for 365 days
do you have a screenshot that shows what you mean by “dirty/filthy” ?
Yeah

58 10 * * fri
Every Friday surah Al-kahf file must be executed but I have 15 different files wich should run in sequence for every Friday.
file2.txt
file3.txt
.
.
.
file15.txt
each file on different Fridays
file2.txt
file3.txt
.
.
.
file15.txt
each file on different Fridays
I mean you can write a script that handles it, and move the logic there instead of having multiple lines in the crontab file. so crontab would be then 1 line for this task, and the logic would be hidden in a script
examples:
ls | while read path; do echo “A new file: $path”; done
echo abcd | if [[ $RANDOM -gt 15000 ]]; then cat; else rev; fi | sed ‘s/./&n/g’
A real example I used it in (which made me think that this could be a good tip):
if geometry=$(slurp); then
grim -g “$geometry” –
else
output=$(swaymsg -t get_outputs -r | jq -r ‘.[] | select(.focused) | .name’)
grim -o “$output” –
fi | if [[ $1 == “-e” ]]; then
swappy -f – -o –
else
cat
fi | wl-copy
Two if statements piped into one another and finally into wl-copy
yep. you can always group things in {} in general beyond this too

you can do * for all days, or */3 for every three days

yep. you can always group things in {} in general beyond this too
it’s posix, too!

Tip: You can use all bash flow control statements similar to a command. Each statement has a stdin and a stdout which you can redirect, pipe, etc.
examples:
ls | while read path; do echo “A new file: $path”; done
echo abcd | if [[ $RANDOM -gt 15000 ]]; then cat; else rev; fi | sed ‘s/./&n/g’
A real example I used it in (which made me think that this could be a good tip):
if geometry=$(slurp); then
grim -g “$geometry” –
else
output=$(swaymsg -t get_outputs -r | jq -r ‘.[] | select(.focused) | .name’)
grim -o “$output” –
fi | if [[ $1 == “-e” ]]; then
swappy -f – -o –
else
cat
fi | wl-copy
Two if statements piped into one another and finally into wl-copy
btw, i suggest telling wl-copy about the image type. i recently was on a system where it didn’t induce the mime type automatically

btw, i suggest telling wl-copy about the image type. i recently was on a system where it didn’t induce the mime type automatically
works for now and it is a personal script
Initial report Flameshot Version Flameshot v11.0.0 () Compiled with Qt 5.15.2 linux: 5.16.5-arch1-1 arch: unknown Installation Type Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, cho…

https://github.com/flameshot-org/flameshot/issues/2364
have you checked out sway’s grimshot scripts btw?

have you checked out sway’s grimshot scripts btw?
yeah, did not try though

they’re not very stable, I’ve heard people get coredumps using it lol
whew, lmao