Remap that copilot key

My new laptop has a copilot key instead of a right ctrl key. When you press the copilot key it emits left shift + left Windows key + F23. I wanted to map that back to ctrl in Ubuntu 24.04. Here’s how I did it:

# Step 1 - change perms & groups for /usr/local/src
sudo groupadd --users=MYUSER usr-local-src
# Reboot to pick up group changes, then...
groups # Verify I'm in the new group
sudo chgrp usr-local-src /usr/local/src
sudo chmod g+w /usr/local/src
cd /usr/local/src
# Step 2 - Build keyd from source
git clone https://github.com/rvaiya/keyd
cd keyd
make && sudo make install
sudo systemctl enable --now keyd
# Step 3 - configure keyd
cat <<- EOF | sudo tee -a /etc/keyd/default.conf &> /dev/null
[ids]
*
[main]
# Maps copilot key
leftshift+leftmeta+f23 = rightcontrol
EOF
sudo keyd reload

References:

Noisy Outlook calendar notifications for Ubuntu 24.04

[Updated 2/9/2026 with instructions to create a user-based systemd unit]

My experience is that Outlook calendar events don’t make any sound in Ubuntu 24.04 even when configured in OWA. I’m not sure why. It’s fixed in Ubuntu 25.10 (and maybe 25.04), but I can’t go to those versions yet because of compatibility constraints. Here’s how I got sound working by listening to the dbus.

1. In Outlook web mail, go to General -> Notifications and make sure Notifications in Outlook is “On”.

2. In General -> Notifications -> Calendar, make sure event reminders are “On” and that the notification style is “Browser”. (When notification style is “Alert”, I don’t see dbus messages for the notifications.)

3. Create a noisy-calendar.sh script somewhere where you keep your local scripts, let’s say it’s in ~/bin:

#!/bin/bash
while read line; do
if [[ "$line" == *"Outlook"* ]]; then
/usr/bin/paplay /usr/share/sounds/sound-icons/trumpet-12.wav
fi
done < <(dbus-monitor "interface='org.freedesktop.Notifications',arg0='Firefox',arg3='Outlook'")

4. Set the script user-executable:

chmod u+x noisy-calendar.sh

5. Create a user-based systemd unit to run the script at user login time: Add the following to a new file called ~/.config/systemd/user/noisy-calendar.service :

[Unit]
Description=Loud Outlook Event Notifications
[Service]
ExecStart=/home/YOUR_USER_NAME/bin/noisy-calendar.sh
[Install]
WantedBy=default.target

    6. Enable the service and check its status:

    systemctl --user enable noisy-calendar.service
    systemctl --user start noisy-calendar.service
    systemctl --user status noisy-calendar.service

    Now the next time an Outlook calendar event pops a notification you should also get a nice loud reminder sound.

    Troubleshooting/customization

    1. You may need to sudo apt install pulseaudio-utils to get paplay.
    2. At the Linux therminal you can use dbus-monitor to see what messages come through the dbus, and qdbus to see what interfaces are at the numeric dbus addresses, in case it’s not Firefox and Outlook for you.

    References

    When Mozilla Firefox hangs on the Print Preview screen…

    I’m running Mozilla Firefox, and twice now it’s gotten into a state where the print preview function hangs, making it so I can’t print to printer nor to PDF. (I can still cancel out of print and be back to the web page.)

    The first time I fixed the issue by uninstalling and reinstalling Firefox. But when the problem happened again this week, within a few months of last time, I wasn’t so keen to reinstall.

    Here’s how I fixed it: I went to about:config and turned off the “Open previous windows and tabs” setting, then exited the browser. When I loaded the browser again, the problem was gone.

    How to configure ssh to stop perpetually giving you a ‘known hosts’ warning for the same hosts

    Whenever I used ssh, I would constantly be getting warnings like this:

    Warning: Permanently added 'somehost.org,111.22.33.45' (RSA) to the list of known hosts.

    The warning would show up even when I was connecting to a host and IP address I’d connected to previously.

    The solution was to add the following line to my ~/.ssh/config file… Continue reading →