right, so as the title suggests…

i like linux based OSes because you can pretty much mould your operating system to the shape of your brain. i call it cognitive ergonomy. and i’d like it to catch on. even on a relatively play-it-safe distro like the one i’m currently using, the repos are full of handy little applications to make life immeasurably easier for you, if they aren’t installed already. thanks to xdotool, xdo, wmctrl, and sxhkd, pretty much any action can easily be bound to a shortcut key. for eg, i have xdotool search --name vimnote windowactivate || kitty --title=vimnote nvim -c "norm 13j" ~/notes/index.md bound to mod+n. it’s so simple, and i was so proud of myself when i got it to work (i’m not really a scripty person). i just wanted to make something easy. then i wanted to make it a bit easier. then i was feeling like “idk this is still way too many key presses” so i found a way of making it even easier.

i’ve got a bunch of little hacks like this. before i found qmmp, i set up global keys for mpv so i could listen to podcasts on another workspace. i have ranger set up to give specific info from mediainfo as a preview for audio and video files. (which windows does easily in gui file browser but THAT’S NOT THE POINT OK)

anyway, the ubuntu forums and arch wiki are full of tricks that a lot of people want to set up, i’m curious as to the ones you had to set up for yourself.

  • z3bra
    link
    fedilink
    English
    51 year ago

    I used to put them all under version control until 2017. I have well over 200 scripts now, so I stopped bothering with version control ^^

    But there are a few things I use every now and then that I find “fun”:

    temporary workspace

    tempsh starts a new shell in a temporary directory, and destroy it when you exit the shell. I use it to test code snippets, open tar bombs, whatever task that don’t need to save my work.

    emojis !

    I have an emoji script, which prompts me for all emojis of the spec using dmenu, so I can search them by name, and put them in my clipboard. It’s a stupid script but I use it a lot (much more than those :shortcut: style selector you have in messaging software!).

    love

    I have a love script, which simply outputs “♥️” to the terminal. Most important script of my workflow!

    • ChrisOP
      link
      English
      21 year ago

      yeah i had an emoji selector for rofi, it was super useful. the problem with emoji selectors is on some sites they’re really easy to use, and on some they are terrible or non-existent, so it’s much better to have a universal menu. only problem was that i just could not train my brain to use the universal menu rather than clicking the face on the box i was writing in. i must revisit this.

      this is what i’m talking about too. i have a similar scripts folder and honestly i can’t remember half the stuff that’s in there ha.