@@ -116,6 +116,7 @@ const (
116116 OperationNameAdjustSdrSaturation
117117 OperationNameHydrate
118118 OperationNameReloadHyprDestination
119+ OperationNameFlipMonitor
119120)
120121
121122type OperationStatus struct {
@@ -171,6 +172,8 @@ func (o OperationStatus) String() string {
171172 operationName = "Render Hypr Config"
172173 case OperationNameReloadHyprDestination :
173174 operationName = "Reload Hypr Destination"
175+ case OperationNameFlipMonitor :
176+ operationName = "Flip Monitor"
174177 default :
175178 operationName = "Operation"
176179 }
@@ -202,6 +205,7 @@ func OperationStatusCmd(name OperationName, err error) tea.Cmd {
202205 OperationNameMatchingProfile ,
203206 OperationNameHydrate ,
204207 OperationNameReloadHyprDestination ,
208+ OperationNameFlipMonitor ,
205209 }
206210 showSuccessToUser := slices .Contains (criticalOperations , name )
207211 return func () tea.Msg {
@@ -260,6 +264,10 @@ type ToggleMonitorCommand struct {
260264 MonitorID int
261265}
262266
267+ type FlipMonitorCommand struct {
268+ MonitorID int
269+ }
270+
263271type ChangeColorPresetCommand struct {
264272 Preset ColorPreset
265273}
@@ -501,6 +509,14 @@ func previewScaleMonitorCmd(monitorID int, scale float64) tea.Cmd {
501509 }
502510}
503511
512+ func flipMonitorCmd (monitor * MonitorSpec ) tea.Cmd {
513+ return func () tea.Msg {
514+ return FlipMonitorCommand {
515+ MonitorID : * monitor .ID ,
516+ }
517+ }
518+ }
519+
504520func toggleMonitorCmd (monitor * MonitorSpec ) tea.Cmd {
505521 return func () tea.Msg {
506522 return ToggleMonitorCommand {
0 commit comments