Skip to content

Commit 0fd50e6

Browse files
committed
update README
1 parent 0048844 commit 0fd50e6

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ To use separate on/off icons, enter both icon names separated by a comma.
8383

8484
### Commands
8585

86-
Enter the terminal/shell commands to associate with the quick toggle on/off actions.
86+
Enter the terminal/shell commands to associate with the quick toggle on/off actions. If applicable, enter the command and search term to be used for the "Command output" Initial State setting and/or the Keep Toggle State Synced setting. Refer to the Startup Behavior and Command Sync Behavior sections below.
8787

8888
![Screenshot-commands](screenshots/screenshot-commands-10.png)
8989

@@ -106,9 +106,7 @@ Specify the state of each toggle button at startup (on, off, the previous state
106106

107107
If "Run Command at Startup" is selected, there is an option to specify a delay time before the command is executed. Because GNOME extensions load early in the startup process, it may be required to delay your command from running by a few seconds to allow other processes to finish loading first. If this is not required, set the delay to 0.
108108

109-
If "Command output" is selected as the Initial State, enter a command to check its output. If the specified Search Term appears in the command output, the button will be set to ON at startup. Otherwise, the button will be OFF at startup.
110-
111-
Enable "Keep Toggle State Synced" to periodically check the output of a command and update the button state accordingly. Set "Polling Frequency" to specify how often the command should run in the background.
109+
If "Command output" is selected as the Initial State, enter a Check Output Command in the Commands section to check its output. If the specified Search Term appears in the command output, the button will be set to ON at startup. Otherwise, the button will be OFF at startup. To keep the toggle state synced to the command output, refer to the Command Sync Behavior section below.
112110

113111
![Screenshot-startup-command](screenshots/screenshot-startup-command-10.png)
114112

@@ -125,6 +123,19 @@ If using `pkexec` or `gnome-terminal -- command` to run sudo commands, it is rec
125123

126124
<br>
127125

126+
127+
### Command Sync Behavior
128+
129+
Enable "Keep Toggle State Synced" to periodically check the output of the Check Output Command and update the button state accordingly. If the specified Search Term appears in the command output, the button will be set to ON. Otherwise, the button will be OFF at.
130+
131+
Set "Polling Frequency" to specify how often the command should run in the background.
132+
133+
![Screenshot-commands](screenshots/screenshot-commands-10.png)
134+
![Screenshot-sync](screenshots/screenshot-sync-10.png)
135+
136+
<br>
137+
138+
128139
### Keyboard Shortcuts
129140

130141
Assign keyboard shortcuts to toggle buttons.

0 commit comments

Comments
 (0)