Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximperconf
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
1
Merge Requests
1
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
ximperconf
Commits
8dd34959
Commit
8dd34959
authored
Jan 13, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hyprland: unify status comparisons to use IsEqual
parent
94cba144
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
actions.go
hyprland/actions.go
+4
-4
plugin-actions.go
hyprland/plugin-actions.go
+3
-3
No files found.
hyprland/actions.go
View file @
8dd34959
...
@@ -138,12 +138,12 @@ func HyprlandToggleModuleCommand(ctx context.Context, cmd *cli.Command) error {
...
@@ -138,12 +138,12 @@ func HyprlandToggleModuleCommand(ctx context.Context, cmd *cli.Command) error {
var
msg
string
var
msg
string
switch
info
.
Status
.
Label
{
switch
{
case
config
.
ModuleStatus
.
Enabled
.
Label
:
case
info
.
Status
.
IsEqual
(
config
.
ModuleStatus
.
Enabled
)
:
msg
,
err
=
manager
.
SetModule
(
"disable"
,
module
,
user
,
false
)
msg
,
err
=
manager
.
SetModule
(
"disable"
,
module
,
user
,
false
)
case
config
.
ModuleStatus
.
Disabled
.
Label
,
config
.
ModuleStatus
.
Unused
.
Label
:
case
info
.
Status
.
IsEqual
(
config
.
ModuleStatus
.
Disabled
),
info
.
Status
.
IsEqual
(
config
.
ModuleStatus
.
Unused
)
:
msg
,
err
=
manager
.
SetModule
(
"enable"
,
module
,
user
,
false
)
msg
,
err
=
manager
.
SetModule
(
"enable"
,
module
,
user
,
false
)
case
config
.
ModuleStatus
.
Missing
.
Label
:
case
info
.
Status
.
IsEqual
(
config
.
ModuleStatus
.
Missing
)
:
msg
,
err
=
manager
.
SetModule
(
"disable"
,
module
,
user
,
false
)
msg
,
err
=
manager
.
SetModule
(
"disable"
,
module
,
user
,
false
)
default
:
default
:
msg
,
err
=
manager
.
SetModule
(
"enable"
,
module
,
user
,
false
)
msg
,
err
=
manager
.
SetModule
(
"enable"
,
module
,
user
,
false
)
...
...
hyprland/plugin-actions.go
View file @
8dd34959
...
@@ -110,10 +110,10 @@ func HyprlandPluginToggleCommand(ctx context.Context, cmd *cli.Command) error {
...
@@ -110,10 +110,10 @@ func HyprlandPluginToggleCommand(ctx context.Context, cmd *cli.Command) error {
path
:=
cmd
.
Args
()
.
Get
(
0
)
path
:=
cmd
.
Args
()
.
Get
(
0
)
status
:=
manager
.
GetPluginStatus
(
path
)
status
:=
manager
.
GetPluginStatus
(
path
)
switch
status
.
Label
{
switch
{
case
config
.
PluginStatus
.
Loaded
.
Label
:
case
status
.
IsEqual
(
config
.
PluginStatus
.
Loaded
)
:
msg
,
err
=
manager
.
SetPlugin
(
"unload"
,
path
)
msg
,
err
=
manager
.
SetPlugin
(
"unload"
,
path
)
case
config
.
PluginStatus
.
Unloaded
.
Label
:
case
status
.
IsEqual
(
config
.
PluginStatus
.
Unloaded
)
:
msg
,
err
=
manager
.
SetPlugin
(
"load"
,
path
)
msg
,
err
=
manager
.
SetPlugin
(
"load"
,
path
)
}
}
...
...
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