feat: created AGS configuration for multiple bars

AGS config using multiple monitor ids
GRUB extra boot menu entries
Fix issue with Foot terminal starting
This commit is contained in:
Zhongheng Liu 2024-09-19 19:53:40 +03:00
commit dde872db67
No known key found for this signature in database
5 changed files with 19 additions and 58 deletions

View file

@ -1,14 +1,14 @@
const hyprland = await Service.import("hyprland")
const dispatch = ws => hyprland.messageAsync(`dispatch workspace ${ws}`);
const wsSymbols = ["壹", "貳", "叁", "肆", "伍", "陸", "柒", "捌", "玖", "拾"]
const Workspaces = () => Widget.EventBox({
onScrollUp: () => dispatch('+1'),
onScrollDown: () => dispatch('-1'),
child: Widget.Box({
children: Array.from({ length: 10 }, (_, i) => i + 1).map(i => Widget.Button({
attribute: i,
label: `${i}`,
label: `${wsSymbols[i-1]}`,
onClicked: () => dispatch(i),
class_name: i === hyprland.active.workspace.id ? "focused" : ""