slime text

July 14th, 2023

silly
ricing
tutorial
customized app launcher entry which instead of saying Sublime Text it says Slime Text

i made a silly little modification to my copy of Sublime Text 4, the non-console text editor that i use for everything (even writing this!)

here's how i did it.

download my cool icon and save it somewhere

...or you could make your own!

a gooey green letter S on a dark pixellated brick background
background: https://unsplash.com/photos/9a58YsGiTPk
font: https://www.dafont.com/plasma-drip-brk.font
made with GNU Imp 😈

override the .desktop file

Sublime Text installs its app launcher entry file to /usr/share/applications/sublime_text.desktop. copy it to ~/.local/share/applications/sublime_text.desktop, or create a new file there with the contents:

[Desktop Entry]
Version=1.0
Type=Application
Name=Slime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/usr/bin/subl %F
Terminal=false
MimeType=text/plain;
Icon=~/pictures/doodles/slime-text.png
Categories=TextEditor;Development;
StartupNotify=true
StartupWMClass=subl
Actions=new-window;new-file;

[Desktop Action new-window] Name=New Window Exec=/usr/bin/subl --launch-or-new-window OnlyShowIn=Unity;

[Desktop Action new-file] Name=New File Exec=/usr/bin/subl --command new_file OnlyShowIn=Unity;

make sure you set Icon= to wherever you saved the icon.

install LocalizedMenu with Package Control

we're using this as a base package for changing the text in the UI. open ~/.config/sublime-text-3/Packages/LocalizedMenu in Sublime's sidebar. right-click the menu/ dir inside the package, then Find & Replace "Sublime Text" -> "slime text". make sure to save all the files (ctrl+alt+s). you can close them and remove the folder from the sidebar now.

open ~/.config/sublime-text-3/Packages/User/LocalizedMenu.sublime-settings (or in the top menu go to Preferences -> Package Settings -> LocalizedMenu -> Settings (User)), then set the contents to:

{
  "locale": "en_US"
}

(or whatever your locale is, if it's provided by the package.)

it doesn't change the text or icon in the title bar, i don't think. but it's good enough for me :)

fin

now you should be all set! happy sliming!

<- Previous post
Home