• 1 Post
  • 16 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
    ·
    5 months 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










  • tonyn@lemmy.mltoLinux@lemmy.mlMy move to Linux
    link
    fedilink
    arrow-up
    2
    ·
    7 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.




  • tonyn@lemmy.mltoLinux@lemmy.mlLinux for Kids?
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    As a father of three, the best parent filter is oversight, communication, and guidance. People want plug and play automatic parenting on the devices their kids use, but the honest truth is nothing beats actually talking to the kids about what’s out there, the dangers, the consequences, and guiding them as they explore. Keep an eye on what they do, and intervene if they start down the wrong rabbit hole. Good luck my friend.