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).
  • Rimu@piefed.social
    link
    fedilink
    English
    arrow-up
    41
    ·
    2 days ago

    I have an old gamer keyboard with extra programmable keys on the side, which I use for cut, copy, paste, close tab, close window, etc. Logitech provides drivers/software for Windows & Mac only.

    To make it work I have a custom monkey-patched USB driver that I compiled from source, some weird daemon that interacts with the driver and some shell scripts on top of that. I’m not sure how but it works thanks to a 9 year old youtube video made by a guy from eastern europe somewhere.

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

      Awesome…

      Care to share the video/code? I actually have something similar (Corsair Scimitar’s macro customizer doesn’t work on Linux

      As I was writing this I found a project that deals with Corsair MMO mice on Linux so now I will be going on an egg hunt.

    • tankplanker@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      I do something similar.

      I have a V4N4G0N that I use the top row (half the normal number row on a full sized board) for switching workspace or switching apps to another workspace, and doing other stuff like copy and paste on different layers for the keyboard.

      As its QMK (via VIAL) I have set all that up directly on the keyboard so its portable to any other PC I want to use. I have eight of these, mix of alu, acrylic and 3D printed, that I can choose from, all sharing the same map. I don’t like using anything else now as its become integral to my normal workflow.

  • mesamune@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 days ago

    I have a meshtastic script that runs once a day that sends a weather report for our local area at 6:00 am. It was based off a script that some awesome person did. I also have a script that once a week sends out ham/meshtastic events to all local people. Its worked out pretty well.

  • golden_zealot@lemmy.ml
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 days ago

    I am indecisive when it comes to wallpapers so I have a script somewhere which accepts tag-words as arguments and then scrapes wallhaven.cc for those words at the resolution of my setup and picks one that contains those words at random before downloading it to my wallpapers folder and setting it as my wallpaper image.

    So for example, you could just know you want something blue so you would run wallpaper blue and it just grabs one and sets it. You could get a wallpaper of the sky, of a blue car, of the ocean, whatever happens to be a wallpaper that met the criteria of the word/s supplied.

    • dasenboy@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      17 hours ago

      KDE actually has a plugin that does just that, I use it currently to rotate a fantasy illustration as my wallpaper every hour from that site.

      • golden_zealot@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        14 hours ago

        Oh neat!

        My script is for gnome, but I wonder if there us an equivalent gnome extension in existence as well.

    • LiveLM@lemmy.zip
      link
      fedilink
      English
      arrow-up
      16
      ·
      edit-2
      2 days ago

      Risky business considering there’s always some horny anime crap mixed in on Wallhaven.
      Filters and tags only help so much since lots of it either has poor tags or no tags at all.

      • golden_zealot@lemmy.ml
        link
        fedilink
        English
        arrow-up
        13
        ·
        2 days ago

        There is a toggle for SFW/Sketchy which in my experience has worked pretty well in avoiding such things, but you are probably right it does not catch everything.

        If such a thing happened, I would just re-run the same command to update to a different one though. I guess I generally just make sure no one is in the room when it runs haha.

        • SeekPie@lemm.ee
          link
          fedilink
          arrow-up
          5
          ·
          2 days ago

          Whenever you get 3 in a row, you know what you have to do.

          The gods have given you a sign.

  • monovergent 🏁@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    1 day 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.

  • vort3@lemmy.ml
    link
    fedilink
    arrow-up
    14
    ·
    2 days 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>: "[email protected]" # 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.

  • thejevans@lemmy.ml
    link
    fedilink
    arrow-up
    16
    ·
    2 days ago

    I have scripts set up to switch between my desk setup and my home theater setup that swap monitor configurations with wlrandr and default audio devices in wireplumber. These scripts are triggered with the “Netflix” button on my Nvidia Shield remote via Home Assistant and SSH. Simultaneously on Home Assistant power to the peripherals on my desk is toggled, the TV input is toggled between the Nvidia Shield and the PC, my AV receiver settings are toggled, and if the PC was asleep, it’s turned on with a WoL magic packet.

    • k4j8@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      That’s awesome! I do something similar using Home Assistant. I scan an NFC tag to set my TV to the right input, adjust the volume, change the receiver settings, run Sunshine on my computer for screen sharing, switch computer displays to just one, and start Steam. I wish I could get WoL to work too.

  • tetris11@lemmy.ml
    link
    fedilink
    arrow-up
    8
    ·
    2 days ago

    my awesome wm config has a lot of customization. We’re talking 5+ years of basically re-writing an entire theme, along with behaviours, widgets, and bindings.

  • driving_crooner@lemmy.eco.br
    link
    fedilink
    arrow-up
    3
    ·
    13 hours ago

    I use this app (webapps is the name I think) to make apps for YouTube, Mubi and TorrentLeech and I have then pinned on the task bar and use them as apps instead of webpages. This is in my hometheater pc

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    13 hours ago

    I use many KDE activities all mapped to a single hotkey. Meta+H, Meta+J, Meta+K, then L, Y, U, G.

    I set my browser and maybe one other as sticky to show on all. I also have specific desktop picture for all of them.

    On top of that I have a startup command that opens all applications I use for work. Each application is configured to open in a certain activity.

    The end result is that instead of doing Alt-Tab or looking for the window I do Meta+Key and it’s there in front of my eyes with focus.

  • tonyn@lemmy.ml
    link
    fedilink
    arrow-up
    37
    arrow-down
    1
    ·
    2 days ago

    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.

  • flatbield@beehaw.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 days ago

    I use hot mount SATA slots for backup and other media. Not that common on workstations. Sure, common on servers.

  • oldfart@lemm.ee
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    ChatGPT wrote a Python program that does select->Tesseract OCR for me, but it doesn’t always work right with two monitors. I’m too stupid to correct it. How have you done yours, what are you using for selecting the area?

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

      pasting from my keybind config

      # 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"
      

      I just pipe grim and slurp (i.e. select part of the Wayland screen then copy) into a temporary png, tesseract it into the clipboard, then delete the temporary png.

      edit: clarified