Skip to content

Instantly share code, notes, and snippets.

GitHub Copilot in Terminal with short command

Add to .zshrc:

c() {
        gh copilot suggest -t shell "$*"
}
@tmrkp
tmrkp / Disable PipeWire HSP HFP profile.md
Last active September 8, 2025 10:02
Arch: Disable PipeWire HSP/HFP profile

Arch: Disable PipeWire HSP/HFP profile

https://wiki.archlinux.org/title/Bluetooth_headset#Disable_PipeWire_HSP/HFP_profile

Unlike PulseAudio, PipeWire does not automatically switch between A2DP and HSP/HFP in response to input events. However, rather than to enable automatically switching to the (lower audio quality) HSP/HFP profile if A2DP fails, you may prefer to disable the former altogether. To do so, create or edit a bluez configuration as shown below.

Possible Paths:

/etc/wireplumber/wireplumber.conf.d/51-mitigate-annoying-profile-switch.conf
@tmrkp
tmrkp / README.md
Last active June 17, 2018 15:07
Fix wrong keys on mac keyboard when using linux

How to fix < and > keys on linux when using a mac keyboard

Create a .Xmodmap file in user directory: nano ~/.Xmodmap

keycode 49 = less greater less greater bar brokenbar bar
keycode 94 = dead_circumflex degree dead_circumflex degree U2032 U2033 U2032

Apply changes with this command: xmodmap ~/.Xmodmap