• 1 Post
  • 94 Comments
Joined 2 years ago
cake
Cake day: June 3rd, 2023

help-circle


  • When I press Super + PrtSc, a bash script performs the following:

    Takes a screenshot of the entire desktop (import -window root) and saves it as ~/screenshot.png…

    Analyzes the screenshot to calculate the “mean brightness” value of the image. It converts the image to grayscale and determines the average pixel brightness (a value between 0 and 1, where 0 is black and 1 is white).

    Checks if the image is dark by comparing the mean brightness to a threshold of 0.2. If the mean brightness is less than 0.2 (i.e., the image is very dark), it applies a negative filter to the image (convert -negate), effectively inverting the colors (black becomes white and vice versa).

    Sends the image to a printer (lp command) named MF741C-743C for printing.





  • tonyn@lemmy.mlOPtoLinux@lemmy.mlRecommend me a distro?
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    1 month ago

    Thank you very much for the recommendations! Out of curiosity, what are the benefits of using say bluefin over just plain fedora? I should also add that I prefer a long term support installation because I don’t reinstall very often. Thanks again