On June 2023, I've decided to abandon "desktop" Linux. I can't bear having to work around everything all the time, not even counting the tons of problems that occur whenever I do a major version upgrade (e.g., when I upgraded from 21.10 to 22.04, my PPAs broken obviously, and also I lost all the hack I had made to the
/etc
to work around problems). I am officially back to macOS starting 26 June 2023. I'll still use my Linux workstation remotely over Mosh, but not as a desktop environment.
To smoothen the transition, I use the following hacks on macOS:
Linear Mouse since I can't stand macOS' mouse acceleration and also to fix my mouse wheel's direction. My config:
Setting | Value |
---|---|
Pointer -> Pointer acceleration | 0.5 |
Pointer -> Pointer speed | 0.1717 |
Scrolling -> Scrolling mode | By Lines |
Scrolling -> Distance | 2 |
Magnet to be able to move windows around and move them to 1/2 of the display.
AltTab to switch between windows instead cmd+tab's application switching.
Audio Switch to make sure my bluetooth headset's microphone never get used (any wired mic close enough to the mouth is better than a bluetooth mic; the macbook pro's mics are good for that matter).
MenuMeters to see the network activity in the top menu bar.
Screenshots tweaks:
​​​​defaults write com.apple.screencapture location ~/Downloads
​​​​defaults write com.apple.screencapture disable-shadow -bool true
​​​​defaults write com.apple.screencapture show-thumbnail -bool false
Font in iTerm2:
​​​​brew install font-hack-nerd-font
Play/pause in YouTube Music: To fix the Play/Pause/Forward/Backward buttons in YouTube Music's Electron app, make sure that the Media flag is enabled in chrome://flags. Also, don't try to disable Apple Music app from launching on "Play", otherwise you will also disable the media keys entirely!
iTerm2 writes weird characters on click after an ssh session with tmux unexpectedly ended:
​​​​$ 0;37;9M0;37;9m0;24;6M0;24;6m
That's because "mouse reporting" is still enabled for the current shell session. To disable mouse reporting, run:
​​​​printf '\e[?1000l' # disables mouse reporting
To know more: https://superuser.com/questions/802698/disable-mouse-reporting-in-a-terminal-session-after-tmux-exits-unexpectedly
ctrl+space doesn't work in VSCode: disable system shortcut for "Previous input source".
Zsh is borked:
​​​​rm -rf ~/.antigen