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: "󰄀",

View File

@@ -140,6 +140,9 @@ export default () => {
class_name:
"notification-action-buttons-label menu",
hexpand: true,
max_width_chars: 15,
truncate: "end",
wrap: true,
label: action.label,
}),
],

View File

@@ -74,6 +74,9 @@ export default () => {
class_name: "notification-action-buttons-label",
hexpand: true,
label: action.label,
max_width_chars: 15,
truncate: "end",
wrap: true,
}),
],
}),