Skip to content

Instantly share code, notes, and snippets.

@sixertoy
Last active April 2, 2021 14:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sixertoy/07b9d9477ce4cbecea5cb12d17224116 to your computer and use it in GitHub Desktop.
Save sixertoy/07b9d9477ce4cbecea5cb12d17224116 to your computer and use it in GitHub Desktop.
Linux Ubuntu 20.04

Pair Apple Magic Keyboard A1644

  • Open Terminal
  • sudo bluetoothctl
  • power on
  • agent KeyboardOnly
  • default-agent
  • pairable on
  • Power on Keyboard
  • scan on
  • Keyboard MAC Address should be like Magic Keyboard
  • Copy MAC Address
  • trust <mac_address>
  • pair <mac_address>
  • Open Ubuntu settings
  • Select & Connect Keyboard
  • Confirm PIN

Secure Boot

Check EFI Mode

[ -d /sys/firmware/efi ] && echo "Session EFI" || echo "Session non-EFI"

Atom

Export packages list

apm list --installed --bare > package-list.txt

Import packages list

apm install --packages-file package-list.txt

Tilix

Export config

dconf dump /com/gexperts/Tilix/ > tilix.dconf

Import Config

dconf load /com/gexperts/Tilix/ < tilix.dconf

Custom Shortcuts

https://askubuntu.com/questions/26056/where-are-gnome-keyboard-shortcuts-stored

  • ctrl+space

Overview

Disable

gsettings set org.gnome.mutter overlay-key ""

Enable

gsettings set org.gnome.mutter overlay-key "Super_L"

Opera fix h.264

curl -L -O https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/0.47.2/0.47.2-linux-x64.zip
unzip 0.47.2-linux-x64.zip
sudo mv libffmpeg.so /usr/lib/x86_64-linux-gnu/libffmpeg_h264.so
sudo mv /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so.orig
sudo ln -s /usr/lib/x86_64-linux-gnu/libffmpeg_h264.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment