Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jean-Tinland/simple-bar
/ functions
Functions
522 in github.com/Jean-Tinland/simple-bar
⨍
Functions
522
◇
Types & classes
0
↓ 43 callers
Function
useSimpleBarContext
()
lib/components/simple-bar-context.jsx:18
↓ 31 callers
Function
useServerSocket
( target, visible, getter, resetWidget, setLoading, userWidgetIndex, )
lib/hooks/use-server-socket.js:19
↓ 25 callers
Function
useWidgetRefresh
(active, getter, refreshFrequency)
lib/hooks/use-widget-refresh.js:12
↓ 11 callers
Function
onChange
(field, chexbox = false)
lib/components/settings/user-widgets-creator.jsx:125
↓ 4 callers
Function
useYabaiContext
()
lib/components/yabai-context.jsx:20
↓ 3 callers
Function
formatPriceChange
* Format the price change with a '+' for positive changes * @param {string} priceChange - The price change * @returns {string} The formatted price c
lib/components/data/stock.jsx:208
↓ 3 callers
Function
isObject
(item)
lib/utils.js:234
↓ 2 callers
Function
appendClass
(value, newClass)
lib/utils.js:85
↓ 2 callers
Function
cleanupOutput
(output)
lib/utils.js:605
↓ 2 callers
Function
filterApps
( app, exclusions, titleExclusions, exclusionsAsRegex, )
lib/utils.js:348
↓ 2 callers
Function
focusDisplay
* Focus the given display. * * Silently ignores the error thrown when the display is already focused, * which is a known and harmless yabai behavio
lib/yabai.js:116
↓ 2 callers
Function
getSpaces
()
lib/components/yabai-context.jsx:68
↓ 2 callers
Function
moveTo
(direction)
lib/components/yabai/space-options.jsx:37
↓ 2 callers
Function
resetWidget
()
lib/components/data/gpu.jsx:54
↓ 2 callers
Function
themedVariables
(scheme)
lib/styles/core/variables.js:10
↓ 2 callers
Function
toggleUserWidget
* Toggles the active state of a user widget. * * @param {number} index - The index of the user widget to toggle. * @param {Function} resetWidget -
lib/hooks/use-server-socket.js:191
↓ 2 callers
Function
toggleWidget
* Toggles the state of a widget and updates the settings accordingly. * * @param {string} widget - The name of the widget to toggle. * @param {Func
lib/hooks/use-server-socket.js:156
↓ 2 callers
Function
updateCurrentWidget
(widget)
lib/components/settings/settings-widgets.jsx:67
↓ 2 callers
Function
useAerospaceContext
()
lib/components/aerospace-context.jsx:19
↓ 1 callers
Function
arraysMatch
(arr1, arr2)
lib/utils.js:283
↓ 1 callers
Function
buildCommand
* Builds the shell command with optional custom icalBuddy path and look-ahead hours. * @param {string} icalBuddyPath - Optional custom path to icalBu
lib/components/data/next-meeting.jsx:43
↓ 1 callers
Function
buildVariables
()
lib/styles/core/variables.js:88
↓ 1 callers
Function
checkIfConfigFileExists
()
lib/settings.js:1135
↓ 1 callers
Function
cleanupExpiredCache
* Removes expired cache entries from localStorage to prevent unbounded growth. * Uses a conservative 60-second grace period beyond the longest widget
lib/utils.js:124
↓ 1 callers
Function
compare
(item1, item2, key)
lib/utils.js:290
↓ 1 callers
Function
compareObjects
(obj1, obj2)
lib/utils.js:277
↓ 1 callers
Function
decodeUrl
* Decode a URL that may be URL-encoded * @param {string} url - Possibly encoded URL * @returns {string} Decoded URL
lib/components/data/next-meeting.jsx:70
↓ 1 callers
Function
extractFromSafeLink
* Extract the real URL from a SafeLink wrapper * @param {string} safeLink - SafeLink URL * @returns {string} Extracted real URL or original
lib/components/data/next-meeting.jsx:83
↓ 1 callers
Function
extractMeetingUrl
* Extract meeting URL from event URL or notes * @param {string} url - Event URL * @param {string} notes - Event notes/description * @returns {strin
lib/components/data/next-meeting.jsx:97
↓ 1 callers
Function
focusBar
* Focuses the bar element by adding the "simple-bar--focused" class to it. * If the bar element is not found, the function does nothing.
lib/utils.js:660
↓ 1 callers
Function
formatTimeUntil
* Format time until meeting * @param {number} minutes - Minutes until meeting * @returns {string} Formatted time string
lib/components/data/next-meeting.jsx:141
↓ 1 callers
Function
getArguments
(windowManager, yabaiArgs, aerospaceArgs)
index.jsx:259
↓ 1 callers
Function
getCurrencySymbol
* Get the currency symbol for a given currency code * @param {string} currency - The currency code * @returns {string} The currency symbol
lib/components/data/stock.jsx:194
↓ 1 callers
Function
getDenominatorToken
* Returns the symbol for a given denomination * @param {string} denomination - The denomination (e.g., "usd", "eur") * @returns {string} The symbol
lib/components/data/crypto.jsx:146
↓ 1 callers
Function
getIcon
* Returns the appropriate icon component based on the browser name * @param {string} browser - The name of the browser * @returns {JSX.Element} The
lib/components/data/browser-track.jsx:141
↓ 1 callers
Function
getIcon
* Returns the appropriate icon based on the play/pause state. * @param {boolean} isPaused - Whether the music is paused. * @returns {JSX.Element} Th
lib/components/data/youtube-music.jsx:189
↓ 1 callers
Function
getIcon
* Gets the appropriate icon based on the player state. * @param {string} playerState - The current state of the player. * @returns {JSX.Element} The
lib/components/data/spotify.jsx:185
↓ 1 callers
Function
getIcon
* Returns the appropriate weather icon based on the description and time of day * @param {string} description - Weather description * @param {boolea
lib/components/data/weather.jsx:170
↓ 1 callers
Function
getIcon
* Returns the icon component for a given cryptocurrency identifier * @param {string} identifier - The cryptocurrency identifier * @returns {JSX.Elem
lib/components/data/crypto.jsx:134
↓ 1 callers
Function
getLabel
* Returns the label for the weather widget * @param {string} location - The location name * @param {string} temperature - The temperature value * @
lib/components/data/weather.jsx:190
↓ 1 callers
Function
getLastCurrentTab
* Get the last current tab from session storage. * @returns {number} The index of the last current tab.
lib/components/settings/settings-component.jsx:155
↓ 1 callers
Function
getPosition
* Gets the current geographical position of the user * @returns {Promise<GeolocationPosition>} - The position object
lib/components/data/weather.jsx:210
↓ 1 callers
Function
getTransform
* Get the transform value for the battery icon based on the percentage * @param {number} value - The battery percentage * @returns {string} The tran
lib/components/data/battery.jsx:159
↓ 1 callers
Function
hashString
* Simple string hash for generating cache keys from command strings. * @param {string} str - The string to hash. * @returns {string} A base-36 hash
lib/utils.js:110
↓ 1 callers
Function
isMiddleClick
* Checks if the event is a middle-click. * @param {MouseEvent} e - The mouse event. * @returns {boolean} True if the event is a middle-click, false
lib/components/data/data-widget.jsx:134
↓ 1 callers
Function
loadExternalConfig
()
lib/settings.js:1165
↓ 1 callers
Function
loadScreens
()
lib/components/simple-bar-context.jsx:61
↓ 1 callers
Function
onChange
(e)
lib/components/settings/settings-inner.jsx:54
↓ 1 callers
Function
onClickProp
(e)
lib/components/data/data-widget.jsx:54
↓ 1 callers
Function
onMouseLeave
()
lib/components/yabai/space.jsx:82
↓ 1 callers
Function
onWidgetChange
(index, field, value)
lib/components/settings/user-widgets-creator.jsx:36
↓ 1 callers
Function
openCalendarApp
* Open the specified calendar application. * @param {string} calendarApp - The name of the calendar application to open.
lib/components/data/date-display.jsx:115
↓ 1 callers
Function
openCpuUsageApp
* Open the specified CPU usage monitoring application * @param {string} app - The name of the application to open
lib/components/data/cpu.jsx:144
↓ 1 callers
Function
openCrypto
* Opens the cryptocurrency price chart * @param {Event} e - The event object * @param {Function} pushMissive - The function to push a notification
lib/components/data/crypto.jsx:157
↓ 1 callers
Function
openMemoryUsageApp
* Open the specified memory usage application * @param {string} app - The name of the application to open
lib/components/data/memory.jsx:125
↓ 1 callers
Function
openWeather
* Opens the weather forecast in a new tab * @param {Event} e - The event object * @param {Function} pushMissive - Function to push notifications
lib/components/data/weather.jsx:201
↓ 1 callers
Function
parseMeetingData
* Parse meeting data from shell script output * @param {string} output - Raw command output * @returns {Object|null} Meeting object or null
lib/components/data/next-meeting.jsx:156
↓ 1 callers
Function
parseNotifications
* Parses shell command output into notification objects. * @param {string} output - Raw command output from lsappinfo * @returns {Array<{name: strin
lib/components/data/notifications.jsx:43
↓ 1 callers
Function
parseValue
(arg)
lib/utils.js:59
↓ 1 callers
Function
pruneObsoleteSettings
* Removes obsolete settings from the provided settings object. * * @param {Object} settings - The settings object to prune. * @param {Object} setti
lib/settings.js:1156
↓ 1 callers
Function
pushMissive
(newMissive)
lib/components/simple-bar-context.jsx:98
↓ 1 callers
Function
removeDisplay
(index)
lib/components/settings/aerospace-display-manager.jsx:29
↓ 1 callers
Function
renderName
* Renders the wifi network name. * @param {string} name - The network name. * @param {boolean} hideNetworkName - Whether to hide the network name.
lib/components/data/wifi.jsx:149
↓ 1 callers
Function
resetWidget
()
lib/components/data/youtube-music.jsx:53
↓ 1 callers
Function
saveToConfigFile
* Saves the provided settings to the configuration file. * * @param {Object} newSettings - The new settings to be saved. * @returns {Promise<void>}
lib/settings.js:1114
↓ 1 callers
Function
set
(newSettings)
lib/settings.js:1093
↓ 1 callers
Function
setMic
* Set the microphone volume. * @param {number} volume - The volume level to set.
lib/components/data/mic.jsx:149
↓ 1 callers
Function
setSound
* Set the system volume. * @param {number} volume - The volume to set.
lib/components/data/sound.jsx:151
↓ 1 callers
Function
setSound
* Set the volume of MPD * @param {string} path - The path to the MPD binary * @param {string} host - The MPD host * @param {string} port - The MPD
lib/components/data/mpd.jsx:225
↓ 1 callers
Function
toggleCaffeinate
* Toggle caffeinate mode on or off * @param {string} system - The system architecture * @param {string} caffeinate - The current caffeinate state *
lib/components/data/battery.jsx:173
↓ 1 callers
Function
togglePlay
* Toggles play/pause state of the music application. * @param {boolean} isPaused - Whether the music is paused. * @param {string} processName - The
lib/components/data/music.jsx:155
↓ 1 callers
Function
togglePlay
* Toggles play/pause state of Spotify. * @param {boolean} isPaused - Whether the player is paused.
lib/components/data/spotify.jsx:175
↓ 1 callers
Function
togglePlay
* Toggle play/pause state of MPD * @param {string} path - The path to the MPD binary * @param {string} host - The MPD host * @param {string} port -
lib/components/data/mpd.jsx:214
↓ 1 callers
Function
toggleVPN
* Toggle the VPN connection. * @param {boolean} isConnected - Whether the VPN is currently connected. * @param {string} vpnConnectionName - The name
lib/components/data/viscosity-vpn.jsx:126
↓ 1 callers
Function
toggleWifi
* Toggles the wifi on or off. * @param {boolean} isActive - Whether the wifi is currently active. * @param {string} networkDevice - The network devi
lib/components/data/wifi.jsx:124
↓ 1 callers
Function
updateTab
(tab)
lib/components/settings/settings-component.jsx:38
Function
Ableton
(props)
lib/components/icons/library/apple-simulator.jsx:3
Function
Ableton
(props)
lib/components/icons/library/ableton.jsx:3
Function
Activity
(props)
lib/components/icons/library/activity.jsx:3
Function
Add
(props)
lib/components/icons/library/add.jsx:3
Function
AerospaceContextProvider
* AerospaceContextProvider component * @param {Object} props - The component props * @param {React.ReactNode} props.children - The child components
lib/components/aerospace-context.jsx:32
Function
AerospaceDisplayManager
({ defaultValue, onChange })
lib/components/settings/aerospace-display-manager.jsx:14
Function
AffinityDesigner
(props)
lib/components/icons/library/affinity-designer.jsx:3
Function
AffinityPhoto
(props)
lib/components/icons/library/affinity-photo.jsx:3
Function
AffinityPublisher
(props)
lib/components/icons/library/affinity-publisher.jsx:3
Function
Airmail
(props)
lib/components/icons/library/airmail.jsx:3
Function
Alfred
(props)
lib/components/icons/library/alfred.jsx:3
Function
AndroidMessages
(props)
lib/components/icons/library/android-messages.jsx:3
Function
AndroidStudio
(props)
lib/components/icons/library/android-studio.jsx:3
Function
Anki
(props)
lib/components/icons/library/anki.jsx:3
Function
Antigravity
(props)
lib/components/icons/library/antigravity.jsx:3
Function
Anytype
(props)
lib/components/icons/library/anytype.jsx:3
Function
AppStore
(props)
lib/components/icons/library/app-store.jsx:3
Function
Apple
(props)
lib/components/icons/library/apple.jsx:3
Function
Aqua
(props)
lib/components/icons/library/aqua.jsx:3
Function
Arc
(props)
lib/components/icons/library/arc.jsx:3
Function
Atom
(props)
lib/components/icons/library/atom.jsx:3
Function
Audacity
(props)
lib/components/icons/library/audacity.jsx:3
Function
BambuStudio
(props)
lib/components/icons/library/bambu-studio.jsx:3
Function
Bank
(props)
lib/components/icons/library/bank.jsx:3
next →
1–100 of 522, ranked by callers