update ags

This commit is contained in:
sankalp committed 2024-06-26 00:51:40 +05:45
1 parent 2f7207d0c0
commit f939510e5d
2 files changed
+14 -17

No files matched your search

-15
View File
@@ -1,15 +0,0 @@
# Starter Config
if suggestions don't work, first make sure
you have TypeScript LSP working in your editor
if you do not want typechecking only suggestions
```json
// tsconfig.json
"checkJs": false
```
types are symlinked to:
/usr/share/com.github.Aylur.ags/types
+14 -2
View File
@@ -316,6 +316,14 @@ function TaskBar() {
globalWidgets.push(widget);
}
});
if (globalWidgets.length === 0) {
const desktopWidget = Widget.Button({
attribute: { pid: 'desktop' },
child: Widget.Icon({ icon: "desktop-icon" }),
tooltip_markup: "Desktop",
});
globalWidgets.push(desktopWidget);
}
return globalWidgets;
}
@@ -328,8 +336,12 @@ function TaskBar() {
function volumeIndicator() {
return Widget.EventBox({
onScrollUp: () => audio.speaker.volume += 0.01,
onScrollDown: () => audio.speaker.volume -= 0.01,
onScrollUp: () => {
audio.speaker.volume = Math.min(audio.speaker.volume + 0.05, 1);
},
onScrollDown: () => {
audio.speaker.volume = Math.max(audio.speaker.volume - 0.05, 0);
},
class_name: "filled_tonal_button volume_box",
child: Widget.Button({
on_primary_click: () => Utils.execAsync("pavucontrol").catch(print),