FullScreenStatus is a Sublime Text plugin that is designed to be used by other plugins. It helps to detect if Sublime Text is running on full screen mode, distraction free mode or normal mode. Current Sublime Text version (ST 3 Build 3047) does not provide this information via its API.
The preferred method of installation is via Sublime Package Control.
- Install Package Control
- Open command palette with Ctrl Shift P
- Type
install packageand hit return. A list of available packages will be displayed. - Type
FullScreenStatusand hit return. The package will be downloaded into the appropriate directory.
-
Go to your
Packagesdirectory. You can locate yourPackagesdirectory by using the menu item Preferences > Browse Packages... -
Inside the
Packagesdirectory, clone FullScreenStatus repository using the command below:git clone https://github.com/maliayas/SublimeText_FullScreenStatus.git FullScreenStatus
import sublime
if sublime.active_window().settings().get('fss_on_full_screen'):
# ST is running on full screen.
if sublime.active_window().settings().get('fss_on_distraction_free'):
# ST is running on distraction free mode.Source code of this project is hosted at https://github.com/maliayas/SublimeText_FullScreenStatus. Contributions are welcome via pull requests.
FullScreenStatus is released under the MIT License.