Remove global service declarations and change to declarations upon usage. (#761)
* Remove global service declarations and change to declarations upon usage. * Only load cava service if cava is enabled.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { bind, Variable } from 'astal';
|
||||
import { hyprlandService } from '../constants/services';
|
||||
import { App } from 'astal/gtk3';
|
||||
import AstalHyprland from 'gi://AstalHyprland?version=0.1';
|
||||
import { forceUpdater } from 'src/components/bar/modules/workspaces/helpers';
|
||||
import options from 'src/options';
|
||||
|
||||
const hyprlandService = AstalHyprland.get_default();
|
||||
const { autoHide } = options.bar;
|
||||
|
||||
const focusedClient = (focusedClient: AstalHyprland.Client): void => {
|
||||
|
||||
Reference in New Issue
Block a user