<- go back home

slime text

2023-07-14

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 GUI text editor that i use for everything outside of a terminal. (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.

fin

now you should be all set! happy sliming!