Skip to content

Instantly share code, notes, and snippets.

@mostlygeek
mostlygeek / customize-mx-master-ubuntu.md
Last active May 16, 2021 23:25 — forked from bogdanRada/customize-mx-master-ubuntu.md
Custom keymap for Logitech MX Master 2S mouse on Ubuntu

Notes for Ubuntu 21.04, getting the MX Master mouse to work.

  1. Ubuntu 21.04 uses Wayland by default. These instructions only work for x.org
  2. Getting Wayland to rebind mouse keys was confusing. Much easier to just use x.org and these instructions I found.

First, install Solaar to see the battery level on the taskbar

sudo apt-get install solaar
@mostlygeek
mostlygeek / .profile
Created August 14, 2021 17:02 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else