Skip to content

Instantly share code, notes, and snippets.

View erichanson1's full-sized avatar

erichanson1

  • GitHub Staff
  • Trowbridge
  • 07:29 (UTC +01:00)
View GitHub Profile
@erichanson1
erichanson1 / gnome_tweaks.md
Last active May 8, 2026 21:42
Gnome Useful Tricks and Features

My Gnome Notes

Taking Screenshots or Displaying a Window on All Screens

If you right click on the top tall bar of an application, you (may first get the Applications Right Click Menu - in which case, right-click a second time), and then you'll get a menu allowing you to

  • Take Screenshot
  • Hide, Maximize, Move, Resize, Always on Top
  • Always on Visible workspace
  • Move to workspace left,right

@erichanson1
erichanson1 / keyboard_swap_keys.md
Last active January 31, 2026 16:49
Keyboard Mapping in Ubuntu

Swapping Keys on a Keyboard.

I'm based in the UK, and I've installed Ubuntu 25.10 on my MacBookPro13,2 which has a UK Apple Macintosh Keyboard. During Installation, I select my keyboard as "English (UK, Macintosh)" which for the most part works. It correctly maps shift+3 as £ and option+3 as #, "' :; |\ are all mapped correctly. The only two keys that are wrong are ` and § ( which are swapped around ).

My physical keyboard layout looks like image

But Ubuntu thinks it looks like this image

@erichanson1
erichanson1 / hid-magicmouse_rebuild.md
Last active June 1, 2026 09:16
Rebuilding Kernel Object ( hid-magicmouse )

Summary

Whilst the Apple Magic Mouse is supported by Ubuntu, I've been struggling a bit with it, as by default it is configured as a 3 button mouse and rather than left clicking, I keep finding myself middle clicking and not getting the response I want.

The actual purpose of this gist is to show how to recompile a Kernel module and integrate it in to the build, rather more than fixing my Magic Mouse issue.

Pre-requisites

Create a directory to hold the source code ( the suggested default location is /usr/src ).

mkdir /usr/src
@erichanson1
erichanson1 / ubuntu-on-mbp-a1706.md
Last active July 19, 2026 09:01 — forked from almas/ubuntu-on-mbp-a1707.md
Ubuntu 26.04 LTS on MacBook Pro 2016 (A1706, MBP 13,2)(T1 chip)