Update snapshot functionality and add notification for it.

This commit is contained in:
Jas Singh
2024-07-09 01:13:20 -07:00
parent c14d2b21df
commit a28bde6e3f
7 changed files with 33 additions and 3 deletions

View File

@@ -157,8 +157,12 @@ const Shortcuts = () => {
children: [
Widget.Button({
class_name: "dashboard-button snapshot top-button",
on_primary_click: () =>
handleClick("grimblast --notify copysave area"),
on_primary_click: () => {
App.closeWindow("dashboardmenu");
return Utils.execAsync(
`${App.configDir}/services/snapshot.sh`,
).catch((err) => console.error(err));
},
child: Widget.Label({
class_name: "button-label",
label: "󰄀",