diff --git a/blog/posts/guide_things_i_keep_having_to_google/index.php b/blog/posts/guide_things_i_keep_having_to_google/index.php index e35dce0..4baedf0 100644 --- a/blog/posts/guide_things_i_keep_having_to_google/index.php +++ b/blog/posts/guide_things_i_keep_having_to_google/index.php @@ -34,7 +34,7 @@
~/.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.~/.config/khotkeysrc
. There should be a line that looks like: Uuid={77575b17-36d6-4b4e-b01f-2f1156e38583}
. Copy everything inside the curly braces, including the braces themselves.$ 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
@@ -55,12 +55,21 @@
"te$(command)xt"
"as$((math))df"
"some $variable text"
"more${variable}text"
-v
-E "/regex/"
-v
-E "/regex/"
-d 'string'
-f n
-d
-d 'string'
-f n
-d
sed 's/ */ /g' | cut -d ' '
sed "s/regex/replacement/flags"
regex
and replaces matches with replacement
.sed "s/a/b/;s/c/d/"
sed "s/a/b/g"
g
flag makes sed replace all occurences of the pattern, not just the firstsed "s/a/b/<number>"
s/a/b/
is the same as s/a/b/1
.sed "s/a/b/i"
sed "s/^a/b/"
sed "s/a$/b/"
sed "s/^a$/b/"
xrandr --output <display name> --brightness <brightness>
wget "https://example.com/file.zip" -O temp.zip; unzip temp.zip; rm temp.zip