Skip to content

Instantly share code, notes, and snippets.

@imaami
Created November 7, 2020 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imaami/dbf540741f629c5da001d431a265f0a2 to your computer and use it in GitHub Desktop.
Save imaami/dbf540741f629c5da001d431a265f0a2 to your computer and use it in GitHub Desktop.
Fix dmenu_run auto-completing "team" -> "teams" instead of "steam"
#!/bin/false
#
# This file exists because i3 really sucks at starting dmenu_run.
#
# Very often when I type mod4+d followed by "steam" and an enter keypress
# the first letter gets dropped (I assume because dmenu_run hasn't captured
# the keyboard yet). What ends up happening is that dmenu_run sees "team"
# and automatically finds the closest match which happens to be "teams".
#
# I almost never fucking want to launch Microsoft Teams, but I launch the
# Steam client multiple times on most days. I'd rather have dmenu_run try
# to launch a nonexistent command and do nothing than "help" me by starting
# up Teams which is a fucking bitch to close.
#
# So if I just create this completely useless NOP command literally named
# "team" then at least dmenu_run's guess is harmless instead of it trying
# to kill me via rage-induced stroke.
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment