Things I Keep Having to Google

This isn't really a guide to anything in particular, I just wanted an easily accessible reference for all the things I'm sick of wading through google results for, or otherwise seem to need help remembering. I've put it here in case someone else might find this helpful. I'll likely be adding to this as I find myself repeatedly googling things.

Binding things to just the Super key in KDE

  1. Bind it to some other keyboard shortcut using KDE's typical GUI methods. Any shortcut will do.
  2. Find the entry for it in ~/.config/khotkeysrc. There should be a line that looks like: Uuid={77575b17-36d6-4b4e-b01f-2f1156e38583}. Copy the contents of that line, specifically everything I have underlined there.
  3. Run the following commands:
$ kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.kglobalaccel,/component/khotkeys,org.kde.kglobalaccel.Component,invokeShortcut,<YOUR UUID HERE>"
$ qdbus org.kde.KWin /KWin reconfigure

Linux command line/Bash stuff


command | command2uses the output of one command as the input to the next
command > filesaves the output of a command to a file
command < fileuses a file as the input to a command
command < fileA > fileBwill therefore run command with the contents of fileA as the input, and save the output to fileB
command <<< "string or $variable"will use the string or variable as the input to a command, the same as  < file


variable=valueassigns a variable
$variablereferences it
$(command)lets you treat the output of a command like a variable reference
$((number+variable))does the same thing for integer math expressions.
$(( $(command) ))
$(( variable ))
This can also just convert strings into integers.
Both can be inserted into strings.
"some $variable text"
Both of these are valid ways to insert a variable into a string.


-vinverts it, so matches are excluded
-E "/regex/"lets you use regex


-d 'string'determines the delimiter string
-f nspecifies a field to output, delimited by -d
sed 's/ */ /g' | cut -d ' 'Piping your thing through this helps with parsing a lot of Linux commands that output tabular data


xrandr --output <display name> --brightness <brightness>Janky software-side display brightness setting with xrandr
wget "" -O; unzip; rm temp.zipBash one-liner to unzip a file from the internet to the current directory

Webdev stuff



Song Lyrics

I don't actually have a solution for this one, I just wish there was a resource for looking up the lyrics to songs and looking up songs by their lyrics that wasn't an SEO leech site.