Little programs or scripts or automations you’ve created ad-hoc to solve a particular single use case

I have lots of shortcuts i make on my phone and I have one i love that detects when bluetooth accidentally or purposefully disconnects from my speaker and reconnects it and fixes a playback glitch so its back to playing properly

  • neidu3@sh.itjust.worksM
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    9 hours ago

    I mostly write utilities/tools like this. Some examples from my ~/bin/ folder:

    • A script that turns caps lock off and numlock on, and remaps caps lock to compose. I have this run by cron every minute.
    • A script that saves the current buffer of my continously running screen recorder to a file. Bound to the Lenovo coilot key.
    • A half-finished script that downloads and installs the latest version of discord, as Discord and ants me to manually upgrade it every time I start it.

    Edit: OH, and on my work laptop I have a script named Fnkeyfuckery. The keyboard layout is annoying in that I have to choose between Function keys or have Home+End.
    I want my function keys AND I want home+end. Luckily I don’t need F11 and F12 very often, so I’swapped around those two with their alternate function. That way I have F1 through F10, Home and End by default, and if I hold Fn I can have F11 and F12 too. It runs on startup.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      script that saves the current buffer of my continously running screen recorder to a file

      Curious to know why you are continuously recording your screen. Must fill up your hard drives really quickly?

      • neidu3@sh.itjust.worksM
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        4 hours ago

        Why: I case I want to show something unplanned to someone. Freak accident in a game, for example.
        Disk: It’s only keeping the latest 30 minutes in a buffer. Saving basically means copying that buffer to a different file.