diff --git a/config/ags/README.md b/config/ags/README.md deleted file mode 100644 index 71563ed7..00000000 --- a/config/ags/README.md +++ /dev/null @@ -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 diff --git a/config/ags/modules/bar.ts b/config/ags/modules/bar.ts index e19d4c67..f47857fe 100644 --- a/config/ags/modules/bar.ts +++ b/config/ags/modules/bar.ts @@ -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),