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:
parent
1f80786864
commit
dde872db67
5 changed files with 19 additions and 58 deletions
|
@ -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" : ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue