Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-panel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-panel
Commits
269c5d7a
Verified
Commit
269c5d7a
authored
Jun 19, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
panel: add spacing option
parent
d748843c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
README.md
README.md
+8
-0
config.json
data/config.json
+1
-0
config.go
src/config.go
+5
-0
generate.go
src/generate.go
+1
-1
No files found.
README.md
View file @
269c5d7a
...
...
@@ -67,6 +67,14 @@ Optional monitor filter:
An empty or missing
`output`
list leaves Waybar on its default outputs.
Module spacing:
```
json
{
"spacing"
:
10
}
```
## Module Resolution
The config stores logical module names. At generation time, the panel merges
...
...
data/config.json
View file @
269c5d7a
...
...
@@ -2,6 +2,7 @@
"position"
:
"top"
,
"type"
:
"panel"
,
"output"
:
[],
"spacing"
:
10
,
"modules_left"
:
[
"image#menu"
,
"tray"
...
...
src/config.go
View file @
269c5d7a
...
...
@@ -21,6 +21,7 @@ type Config struct {
Position
string
`json:"position"`
Type
string
`json:"type"`
Output
[]
string
`json:"output"`
Spacing
int
`json:"spacing"`
ModulesLeft
[]
string
`json:"modules_left"`
ModulesCenter
[]
string
`json:"modules_center"`
ModulesRight
[]
string
`json:"modules_right"`
...
...
@@ -83,6 +84,10 @@ func (c Config) Validate() error {
}
}
if
c
.
Spacing
<
0
{
return
errors
.
New
(
"spacing cannot be negative"
)
}
for
_
,
name
:=
range
append
(
append
([]
string
{},
c
.
ModulesLeft
...
),
append
(
c
.
ModulesCenter
,
c
.
ModulesRight
...
)
...
)
{
if
strings
.
TrimSpace
(
name
)
==
""
{
return
errors
.
New
(
"module name cannot be empty"
)
...
...
src/generate.go
View file @
269c5d7a
...
...
@@ -14,7 +14,7 @@ func GenerateConfig(cfg Config, registry Registry) ([]byte, error) {
"margin-top"
:
0
,
"margin-right"
:
0
,
"margin-bottom"
:
0
,
"spacing"
:
10
,
"spacing"
:
cfg
.
Spacing
,
"exclusive"
:
true
,
"fixed-center"
:
true
,
"reload_style_on_change"
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment