ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Full​Screen​Status

by maliayas ST2/ST3

Detect programmatically if Sublime Text is running on full screen or distraction free mode

Details

Installs

  • Total 2K
  • Win 711
  • OS X 939
  • Linux 320
Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7
Windows 0 1 0 2 0 0 1 0 1 0 0 0 0 0 1 0 1 1 1 1 1 0 0 1 1 0 0 0 0 1 0 1 0 0 1 1 0 1 0 0 0 0 2 1 0
OS X 0 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 2 0 0 0 1 0 1
Linux 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

FullScreenStatus

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.

Overview

Installation

Package Control

The preferred method of installation is via Sublime Package Control.

  1. Install Package Control
  2. Open command palette with Ctrl Shift P
  3. Type install package and hit return. A list of available packages will be displayed.
  4. Type FullScreenStatus and hit return. The package will be downloaded into the appropriate directory.

Using Git

  1. Go to your Packages directory. You can locate your Packages directory by using the menu item Preferences > Browse Packages…
  2. Inside the Packages directory, clone FullScreenStatus repository using the command below:

    git clone https://github.com/maliayas/SublimeText_FullScreenStatus.git FullScreenStatus
    

Usage

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

Source code of this project is hosted at https://github.com/maliayas/SublimeText_FullScreenStatus. Contributions are welcome via pull requests.

License

FullScreenStatus is released under the MIT License.