mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-06 07:19:27 -05:00
ags: add terminal config option
This commit is contained in:
@@ -64,7 +64,7 @@ export function launchCustomCommand(command) {
|
||||
export function execAndClose(command, terminal) {
|
||||
App.closeWindow('overview');
|
||||
if (terminal) {
|
||||
execAsync([`bash`, `-c`, `foot fish -C "${command}"`, `&`]).catch(print);
|
||||
execAsync([`bash`, `-c`, `${userOptions.apps.terminal} fish -C "${command}"`, `&`]).catch(print);
|
||||
}
|
||||
else
|
||||
execAsync(command).catch(print);
|
||||
|
||||
@@ -77,7 +77,7 @@ export default () => SidebarModule({
|
||||
child: scriptStateIcon,
|
||||
onClicked: () => {
|
||||
App.closeWindow('sideleft');
|
||||
execAsync([`bash`, `-c`, `foot fish -C "${script.command}"`]).catch(print)
|
||||
execAsync([`bash`, `-c`, `${userOptions.apps.terminal} fish -C "${script.command}"`]).catch(print)
|
||||
.then(() => {
|
||||
scriptStateIcon.label = 'done';
|
||||
})
|
||||
|
||||
@@ -11,6 +11,7 @@ let userConfigOptions = {
|
||||
},
|
||||
'apps': {
|
||||
'imageViewer': 'loupe',
|
||||
'terminal': 'foot', // This is only for shell actions
|
||||
},
|
||||
'battery': {
|
||||
'low': 20,
|
||||
|
||||
Reference in New Issue
Block a user