• 2 Posts
  • 61 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.





  • Tony N@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














  • Tony N@lemmy.mltoLinux@lemmy.mlMy move to Linux
    link
    fedilink
    arrow-up
    2
    ·
    4 months ago

    Another vote for sublime. I’m a full stack web developer and it’s all I need. The native features and extensibility blow me away. It has so many features I’ll never use them all. Multiple cursor editing saves so much time. Really give it a chance and you’ll fall in love.