Added the ability to restart AGS on monitor connect or awake from sleep. (#432)

* Added the ability to restart AGS on monitor connect or awake from sleep.

* Made nix check more robust
This commit is contained in:
Jas Singh
2024-11-04 02:29:31 -08:00
committed by GitHub
parent c8e657f3f9
commit 155b9bb1f7
3 changed files with 65 additions and 2 deletions

View File

@@ -34,6 +34,20 @@ export const BarGeneral = (): Scrollable<Child, Attribute> => {
themeOnly: false,
},
}),
Option({
opt: options.hyprpanel.restartAgs,
title: 'Restart Hyprpanel On Wake Or Monitor Connection',
subtitle:
'WARNING: Disabling this will stop the bar from appearing on monitors after waking \n' +
'from sleep or when a new monitor is connected.',
type: 'boolean',
}),
Option({
opt: options.hyprpanel.restartCommand,
title: 'Restart Command',
subtitle: 'Command to execute when a restart is initiated.',
type: 'string',
}),
Option({
opt: options.terminal,
title: 'Terminal',