this post was submitted on 05 Jan 2025
75 points (98.7% liked)

Ask Lemmy

27372 readers
2865 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

I use a Linux distro with kde, so I have a lot of customization available. I like trying other distros in VMs, but stuff like windows (no need to copy really kde is similar by default) and Mac is a pain in the ass to use that way. so, I want to know what your os does that you think I should copy using kde's customization. I'm looking for Mac in particular (bc I haven't used it before) but any OS or desktop environment is fair game.

you are viewing a single comment's thread
view the rest of the comments
[–] traches@sh.itjust.works 28 points 1 day ago (4 children)
  • super+u shows a wofi menu allowing me to fuzzy find a credential from my password manager and copy its username
  • super+p same thing but for passwords
  • super+o same thing but for TOTP codes
  • super+t allows me to select an area of the screen, take a screenshot, run it through OCR, translate it to English via the deepl API, and then pop up the result as a desktop notification and also copy it to the clipboard. (I’m not fluent in the language of the country I live in)
  • ”lock” and „request” based suspend management, so my backup scripts or other long running jobs can keep the computer from sleeping until they are done.
[–] CaptainBasculin@lemmy.ml 8 points 1 day ago (2 children)

what software do you use for super+t?

[–] traches@sh.itjust.works 18 points 1 day ago* (last edited 1 day ago) (1 children)

Grim, slurp, tesseract, and apparently the deepl SDK for Ruby? That was an interesting choice, younger me.

#! /bin/zsh
# Select an area of the screen, Screenhot, OCR, and translate it to english.

temp_image=$(mktemp --suffix '.png')
grim -g "$(slurp)" "$temp_image"

# DPI of 120 seems to work OK for screenshots.
source_text=$(tesseract "$temp_image" - --dpi 120 -l pol+deu) 

translated_text=$(~/scripts/translate "$source_text")

wl-copy $translated_text

notify-send 'Translation: ' "$translated_text" --expire-time=60000 --category 'translation'

rm $temp_image

Translate script:

#! /bin/ruby
require_relative 'deepl_request'

puts Translator::DeeplRequest
       .new(ARGV.join ' ')
       .translation

This script is a bit hacky and one-off, I wouln't just copy-paste it.

[–] tht@social.pwned.page 1 points 1 day ago

Thx I'll use this

load more comments (1 replies)