Just wondering since I know a lot of people quietly use a screen-area-select -> tesseract OCR -> clipboard shortcut.

  • I separate subjects of interest into different Firefox windows, in different workspaces – so I have an extension title them and a startup script parse text to ask the compositor to put them in the correct workspace (lets me restart more conveniently).
  • I have automatically-set different-orientation wallpapers for using my 2-in-1 depending on whether I use it in portrait or landscape (kind of just for looks, but I don’t think if anyone else adds a wallpaper change to their screen rotation keybind).
  • nycki@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    34 minutes ago

    I have Syncthing set up to copy save data between my pc and steam deck, but not just for emulator stuff: its got my entire modded minecraft directory and my balatro modloader nn there too.

    • fool@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      25 minutes ago

      I think I mentioned it but here it is again in case the comment didnt federate

      click to enlarge
      # snippet based on end4 dotfiles -- FIXME edge case where a
      #     preexisting tmp.png might be overwritten
      # English
      bind = Super+Shift,T,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract -l eng "tmp.png" - | wl-copy && rm "tmp.png"
      # Korean
      bind = Super+Shift,K,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract -l kor "tmp.png" - | wl-copy && rm "tmp.png"
      # Japanese
      bind = Super+Shift,J,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract -l jpn "tmp.png" - | wl-copy && rm "tmp.png"
      

      Pipe grim and slurp (selects part of the Wayland screen then copies) into a tmp.png, tesseract it into the clipboard, then delete the tmp.png. Has like 1 sec of lag tho :]

  • dino@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 hours ago

    I type “power…” into my cli and press tab+enter to shutdown my computer. Same for reboot… 😆

  • corsicanguppy@lemmy.ca
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    7 hours ago

    In all my servers I still have a cron->make routine running. It’s a hold-over from 20 years ago and the state of IaC back then, and it’s made its way onto every server I manage because it is simple and effective.

    And it still does its job. 8 major RHEL releases later, and the thing it needs to do, it does.

    Lennart would build 3 new daemons and link them all into dbus, I’m sure.

  • comfy@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    14 hours ago

    While I doubt the concept is unique, the script is: a keyboard shortcut will check the clipboard for a YouTube link and then show launcher options for mpv or yt-dlp, including launch arguments for lower quality format and audio only. It launches that in a terminal for easier handling when yt-dlp doesn’t work properly (much more common if using proxies, but also if a video is age-restricted or deleted).

    So when I see a yt link here, I can just copy it, keyboard shortcut and then it’s playing in my local video player.

    • dino@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 hours ago

      Uh I would be interested in that actually! Nowadays Youtube generates lots of problems with freetube due to their cookie bullshit and I feel with mpv(yt-dlp) in cli I at least have the option to see whats going on.

  • SitD@lemy.lol
    link
    fedilink
    arrow-up
    5
    ·
    14 hours ago

    the ability to use two Bluetooth dongles simultaneously, each for one device. try that on Microsoft’s clown os and see how pressing the gamepad triggers makes the bluetooth headphones chop up the sound 😂

  • monovergent 🏁@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    15 hours ago

    The text editor shortcut on my taskbar runs a sort of autosave script in ~/.drafts. I wanted my text editor to function more like the one on my phone so I can just jot down random thoughts without going through the whole ritual of naming and saving. It creates YYYYMMDD_text in ~/.drafts (or YYYYMMDD_text_1 etc. if it already exists) and launches Pluma, which I also have configured to autosave every 10 minutes.

    The other thing extends beyond Linux itself a bit. I like to joke that I have the most secure NT 4 / Windows 95 lookalike ever put together. Aside from the encrypted and hardened Debian base (/boot is also encrypted), I was in part inspired by Apple’s parts pairing (yikes!). So my coreboot is configured to only accept my boot disk. If it’s swapped out or missing, or if I want to boot something else, it will ask for a password. In the unlikely event my machine gets stolen, the thief must at a minimum reflash the BIOS or replace the motherboard to make it useful again. Idk, it amuses me every time I think about it.

  • Thembo McBembo@beehaw.org
    link
    fedilink
    arrow-up
    14
    ·
    21 hours ago

    I have two mice, one for either hand, and use xinput to flip the buttons on JUST the left one. It’s actually one of the main things keeping me from moving to Wayland, which doesn’t seem to have the same configuration features

    • baguettefish@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      5 hours ago

      there are both configurable mice that let you swap mouse buttons (in the worst case in a windows virtualbox with usb passthrough) or mice that are leftie right out the get-go. those would allow you to use wayland, assuming you can afford to and want to get a new mouse.

    • fool@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      20 hours ago

      LOL I’ve never seen that before.

      Do you use them both at the same time? Or do you switch between them rapidly? (Maybe you could make a taskbar button-toggle if it’s the latter!)

  • vort3@lemmy.ml
    link
    fedilink
    arrow-up
    12
    ·
    22 hours ago

    I use compose key sequences to save time writing out long email addresses. For example, I have something like this in my ~/.XCompose:

    <Multi_key> <b> <o> <s> <at>: "myangryboss@company.com" # Email of my very angry boss
    

    So I can just type Compose (right alt on my system), bos@ and get his email address. Less error prone than typing out emails manually.

    I’m probably not the only one to use compose strings as a replacement to a text expander, but I don’t know anyone else who does this.

  • lengau@midwest.social
    link
    fedilink
    arrow-up
    7
    ·
    21 hours ago
    • I have bash scripts light and dark that make dbus calls to set my global theme to light or dark mode. I switch between them regularly, and opening system settings and pressing a button is too inconvenient.

    Your first one sounds similar to me though - I use activity-aware Firefox to separate my personal and work accounts on my personal and work plasma activities.

  • Cysioland@lemmygrad.ml
    link
    fedilink
    arrow-up
    1
    ·
    14 hours ago

    “yubi [website name]” in Alt+F2 — asks yubikey for a TOTP code for a website and autotypes it into wherever I’ve got my focus

  • esa@discuss.tchncs.de
    link
    fedilink
    arrow-up
    17
    ·
    1 day ago

    I suspect my habit of having an alias userctl="systemctl --user" is slightly unusual, as is running Firefox, Steam, and some other graphical programs as systemd units is somewhat unusual (e.g. mod4-enter runs systemd-run --user alacritty)

    But what I’m actually pretty sure is unique is my keyboard layout. I taught myself dvorak a summer some decades ago, but the norwegian dvorak layout has some annoyances, so I’ve made some tweaks. Used to be a Xmodmap file, but with the switch to wayland I turned it into a file in /usr/share/X11/xkb/symbols/.

    Part of what I did to teach myself dvorak and touch-typing at the same time was randomize the placement of the keycaps too. It has a side effect of being a kind of security by obscurity layer: I type quickly and confidently, but others who want to use my machines have an “uhh …” reaction.

    • navordar@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      6 hours ago

      I didn’t know about the systemd-run command. Do you use it to save the command log? I created a script conveniently named x which opens a file in a default app, in the background, so I can still use the terminal. But then I had the problem with handling logs and this sounds like a perfect solution. Gonna try it today.

      As for the alias, I wanted to create a pacman-like interface for systemctl, so the commands would be much shorter, but never finished it. For example, sctl -Eun unit would be equal to sysyemctl enable --user --now unit

      • esa@discuss.tchncs.de
        link
        fedilink
        arrow-up
        3
        ·
        6 hours ago

        The logs are handled, but I mostly use it for command separation and control, including killing unruly child processes.

  • twinnie@feddit.uk
    link
    fedilink
    arrow-up
    4
    ·
    20 hours ago

    I created my own openSUSE splash screen for KDE because I felt all the existing ones were a bit amateur and I wanted something professional looking. I haven’t published it because I can’t be bothered creating an account. It only took about 15 minutes because I chopped up another one which had clearly chopped up another one.