ipc: Convert all Action unit variants to unit struct variants
Browse files at this commit370fd4e172ec3daf9dc9c75dc0555fe91182f731Parent: 7dea3822 changed files +136 -134
- niri-config/src/lib.rs +69 -67
- niri-ipc/src/lib.rs +67 -67
niri-config/src/lib.rsmodified+69 -67
| @@ -1169,11 +1169,11 @@ impl From<niri_ipc::Action> for Action { | |||
| 1169 | fn from(value: niri_ipc::Action) -> Self { | 1169 | fn from(value: niri_ipc::Action) -> Self { |
| 1170 | match value { | 1170 | match value { |
| 1171 | niri_ipc::Action::Quit { skip_confirmation } => Self::Quit(skip_confirmation), | 1171 | niri_ipc::Action::Quit { skip_confirmation } => Self::Quit(skip_confirmation), |
| 1172 | - niri_ipc::Action::PowerOffMonitors => Self::PowerOffMonitors, | 1172 | + niri_ipc::Action::PowerOffMonitors {} => Self::PowerOffMonitors, |
| 1173 | niri_ipc::Action::Spawn { command } => Self::Spawn(command), | 1173 | niri_ipc::Action::Spawn { command } => Self::Spawn(command), |
| 1174 | niri_ipc::Action::DoScreenTransition { delay_ms } => Self::DoScreenTransition(delay_ms), | 1174 | niri_ipc::Action::DoScreenTransition { delay_ms } => Self::DoScreenTransition(delay_ms), |
| 1175 | - niri_ipc::Action::Screenshot => Self::Screenshot, | 1175 | + niri_ipc::Action::Screenshot {} => Self::Screenshot, |
| 1176 | - niri_ipc::Action::ScreenshotScreen => Self::ScreenshotScreen, | 1176 | + niri_ipc::Action::ScreenshotScreen {} => Self::ScreenshotScreen, |
| 1177 | niri_ipc::Action::ScreenshotWindow { id: None } => Self::ScreenshotWindow, | 1177 | niri_ipc::Action::ScreenshotWindow { id: None } => Self::ScreenshotWindow, |
| 1178 | niri_ipc::Action::ScreenshotWindow { id: Some(id) } => Self::ScreenshotWindowById(id), | 1178 | niri_ipc::Action::ScreenshotWindow { id: Some(id) } => Self::ScreenshotWindowById(id), |
| 1179 | niri_ipc::Action::CloseWindow { id: None } => Self::CloseWindow, | 1179 | niri_ipc::Action::CloseWindow { id: None } => Self::CloseWindow, |
| @@ -1181,51 +1181,53 @@ impl From<niri_ipc::Action> for Action { | |||
| 1181 | niri_ipc::Action::FullscreenWindow { id: None } => Self::FullscreenWindow, | 1181 | niri_ipc::Action::FullscreenWindow { id: None } => Self::FullscreenWindow, |
| 1182 | niri_ipc::Action::FullscreenWindow { id: Some(id) } => Self::FullscreenWindowById(id), | 1182 | niri_ipc::Action::FullscreenWindow { id: Some(id) } => Self::FullscreenWindowById(id), |
| 1183 | niri_ipc::Action::FocusWindow { id } => Self::FocusWindow(id), | 1183 | niri_ipc::Action::FocusWindow { id } => Self::FocusWindow(id), |
| 1184 | - niri_ipc::Action::FocusColumnLeft => Self::FocusColumnLeft, | 1184 | + niri_ipc::Action::FocusColumnLeft {} => Self::FocusColumnLeft, |
| 1185 | - niri_ipc::Action::FocusColumnRight => Self::FocusColumnRight, | 1185 | + niri_ipc::Action::FocusColumnRight {} => Self::FocusColumnRight, |
| 1186 | - niri_ipc::Action::FocusColumnFirst => Self::FocusColumnFirst, | 1186 | + niri_ipc::Action::FocusColumnFirst {} => Self::FocusColumnFirst, |
| 1187 | - niri_ipc::Action::FocusColumnLast => Self::FocusColumnLast, | 1187 | + niri_ipc::Action::FocusColumnLast {} => Self::FocusColumnLast, |
| 1188 | - niri_ipc::Action::FocusColumnRightOrFirst => Self::FocusColumnRightOrFirst, | 1188 | + niri_ipc::Action::FocusColumnRightOrFirst {} => Self::FocusColumnRightOrFirst, |
| 1189 | - niri_ipc::Action::FocusColumnLeftOrLast => Self::FocusColumnLeftOrLast, | 1189 | + niri_ipc::Action::FocusColumnLeftOrLast {} => Self::FocusColumnLeftOrLast, |
| 1190 | - niri_ipc::Action::FocusWindowOrMonitorUp => Self::FocusWindowOrMonitorUp, | 1190 | + niri_ipc::Action::FocusWindowOrMonitorUp {} => Self::FocusWindowOrMonitorUp, |
| 1191 | - niri_ipc::Action::FocusWindowOrMonitorDown => Self::FocusWindowOrMonitorDown, | 1191 | + niri_ipc::Action::FocusWindowOrMonitorDown {} => Self::FocusWindowOrMonitorDown, |
| 1192 | - niri_ipc::Action::FocusColumnOrMonitorLeft => Self::FocusColumnOrMonitorLeft, | 1192 | + niri_ipc::Action::FocusColumnOrMonitorLeft {} => Self::FocusColumnOrMonitorLeft, |
| 1193 | - niri_ipc::Action::FocusColumnOrMonitorRight => Self::FocusColumnOrMonitorRight, | 1193 | + niri_ipc::Action::FocusColumnOrMonitorRight {} => Self::FocusColumnOrMonitorRight, |
| 1194 | - niri_ipc::Action::FocusWindowDown => Self::FocusWindowDown, | 1194 | + niri_ipc::Action::FocusWindowDown {} => Self::FocusWindowDown, |
| 1195 | - niri_ipc::Action::FocusWindowUp => Self::FocusWindowUp, | 1195 | + niri_ipc::Action::FocusWindowUp {} => Self::FocusWindowUp, |
| 1196 | - niri_ipc::Action::FocusWindowDownOrColumnLeft => Self::FocusWindowDownOrColumnLeft, | 1196 | + niri_ipc::Action::FocusWindowDownOrColumnLeft {} => Self::FocusWindowDownOrColumnLeft, |
| 1197 | - niri_ipc::Action::FocusWindowDownOrColumnRight => Self::FocusWindowDownOrColumnRight, | 1197 | + niri_ipc::Action::FocusWindowDownOrColumnRight {} => Self::FocusWindowDownOrColumnRight, |
| 1198 | - niri_ipc::Action::FocusWindowUpOrColumnLeft => Self::FocusWindowUpOrColumnLeft, | 1198 | + niri_ipc::Action::FocusWindowUpOrColumnLeft {} => Self::FocusWindowUpOrColumnLeft, |
| 1199 | - niri_ipc::Action::FocusWindowUpOrColumnRight => Self::FocusWindowUpOrColumnRight, | 1199 | + niri_ipc::Action::FocusWindowUpOrColumnRight {} => Self::FocusWindowUpOrColumnRight, |
| 1200 | - niri_ipc::Action::FocusWindowOrWorkspaceDown => Self::FocusWindowOrWorkspaceDown, | 1200 | + niri_ipc::Action::FocusWindowOrWorkspaceDown {} => Self::FocusWindowOrWorkspaceDown, |
| 1201 | - niri_ipc::Action::FocusWindowOrWorkspaceUp => Self::FocusWindowOrWorkspaceUp, | 1201 | + niri_ipc::Action::FocusWindowOrWorkspaceUp {} => Self::FocusWindowOrWorkspaceUp, |
| 1202 | - niri_ipc::Action::MoveColumnLeft => Self::MoveColumnLeft, | 1202 | + niri_ipc::Action::MoveColumnLeft {} => Self::MoveColumnLeft, |
| 1203 | - niri_ipc::Action::MoveColumnRight => Self::MoveColumnRight, | 1203 | + niri_ipc::Action::MoveColumnRight {} => Self::MoveColumnRight, |
| 1204 | - niri_ipc::Action::MoveColumnToFirst => Self::MoveColumnToFirst, | 1204 | + niri_ipc::Action::MoveColumnToFirst {} => Self::MoveColumnToFirst, |
| 1205 | - niri_ipc::Action::MoveColumnToLast => Self::MoveColumnToLast, | 1205 | + niri_ipc::Action::MoveColumnToLast {} => Self::MoveColumnToLast, |
| 1206 | - niri_ipc::Action::MoveColumnLeftOrToMonitorLeft => Self::MoveColumnLeftOrToMonitorLeft, | 1206 | + niri_ipc::Action::MoveColumnLeftOrToMonitorLeft {} => { |
| 1207 | - niri_ipc::Action::MoveColumnRightOrToMonitorRight => { | 1207 | + Self::MoveColumnLeftOrToMonitorLeft |
| 1208 | + } | ||
| 1209 | + niri_ipc::Action::MoveColumnRightOrToMonitorRight {} => { | ||
| 1208 | Self::MoveColumnRightOrToMonitorRight | 1210 | Self::MoveColumnRightOrToMonitorRight |
| 1209 | } | 1211 | } |
| 1210 | - niri_ipc::Action::MoveWindowDown => Self::MoveWindowDown, | 1212 | + niri_ipc::Action::MoveWindowDown {} => Self::MoveWindowDown, |
| 1211 | - niri_ipc::Action::MoveWindowUp => Self::MoveWindowUp, | 1213 | + niri_ipc::Action::MoveWindowUp {} => Self::MoveWindowUp, |
| 1212 | - niri_ipc::Action::MoveWindowDownOrToWorkspaceDown => { | 1214 | + niri_ipc::Action::MoveWindowDownOrToWorkspaceDown {} => { |
| 1213 | Self::MoveWindowDownOrToWorkspaceDown | 1215 | Self::MoveWindowDownOrToWorkspaceDown |
| 1214 | } | 1216 | } |
| 1215 | - niri_ipc::Action::MoveWindowUpOrToWorkspaceUp => Self::MoveWindowUpOrToWorkspaceUp, | 1217 | + niri_ipc::Action::MoveWindowUpOrToWorkspaceUp {} => Self::MoveWindowUpOrToWorkspaceUp, |
| 1216 | - niri_ipc::Action::ConsumeOrExpelWindowLeft => Self::ConsumeOrExpelWindowLeft, | 1218 | + niri_ipc::Action::ConsumeOrExpelWindowLeft {} => Self::ConsumeOrExpelWindowLeft, |
| 1217 | - niri_ipc::Action::ConsumeOrExpelWindowRight => Self::ConsumeOrExpelWindowRight, | 1219 | + niri_ipc::Action::ConsumeOrExpelWindowRight {} => Self::ConsumeOrExpelWindowRight, |
| 1218 | - niri_ipc::Action::ConsumeWindowIntoColumn => Self::ConsumeWindowIntoColumn, | 1220 | + niri_ipc::Action::ConsumeWindowIntoColumn {} => Self::ConsumeWindowIntoColumn, |
| 1219 | - niri_ipc::Action::ExpelWindowFromColumn => Self::ExpelWindowFromColumn, | 1221 | + niri_ipc::Action::ExpelWindowFromColumn {} => Self::ExpelWindowFromColumn, |
| 1220 | - niri_ipc::Action::CenterColumn => Self::CenterColumn, | 1222 | + niri_ipc::Action::CenterColumn {} => Self::CenterColumn, |
| 1221 | - niri_ipc::Action::FocusWorkspaceDown => Self::FocusWorkspaceDown, | 1223 | + niri_ipc::Action::FocusWorkspaceDown {} => Self::FocusWorkspaceDown, |
| 1222 | - niri_ipc::Action::FocusWorkspaceUp => Self::FocusWorkspaceUp, | 1224 | + niri_ipc::Action::FocusWorkspaceUp {} => Self::FocusWorkspaceUp, |
| 1223 | niri_ipc::Action::FocusWorkspace { reference } => { | 1225 | niri_ipc::Action::FocusWorkspace { reference } => { |
| 1224 | Self::FocusWorkspace(WorkspaceReference::from(reference)) | 1226 | Self::FocusWorkspace(WorkspaceReference::from(reference)) |
| 1225 | } | 1227 | } |
| 1226 | - niri_ipc::Action::FocusWorkspacePrevious => Self::FocusWorkspacePrevious, | 1228 | + niri_ipc::Action::FocusWorkspacePrevious {} => Self::FocusWorkspacePrevious, |
| 1227 | - niri_ipc::Action::MoveWindowToWorkspaceDown => Self::MoveWindowToWorkspaceDown, | 1229 | + niri_ipc::Action::MoveWindowToWorkspaceDown {} => Self::MoveWindowToWorkspaceDown, |
| 1228 | - niri_ipc::Action::MoveWindowToWorkspaceUp => Self::MoveWindowToWorkspaceUp, | 1230 | + niri_ipc::Action::MoveWindowToWorkspaceUp {} => Self::MoveWindowToWorkspaceUp, |
| 1229 | niri_ipc::Action::MoveWindowToWorkspace { | 1231 | niri_ipc::Action::MoveWindowToWorkspace { |
| 1230 | window_id: None, | 1232 | window_id: None, |
| 1231 | reference, | 1233 | reference, |
| @@ -1237,25 +1239,25 @@ impl From<niri_ipc::Action> for Action { | |||
| 1237 | window_id, | 1239 | window_id, |
| 1238 | reference: WorkspaceReference::from(reference), | 1240 | reference: WorkspaceReference::from(reference), |
| 1239 | }, | 1241 | }, |
| 1240 | - niri_ipc::Action::MoveColumnToWorkspaceDown => Self::MoveColumnToWorkspaceDown, | 1242 | + niri_ipc::Action::MoveColumnToWorkspaceDown {} => Self::MoveColumnToWorkspaceDown, |
| 1241 | - niri_ipc::Action::MoveColumnToWorkspaceUp => Self::MoveColumnToWorkspaceUp, | 1243 | + niri_ipc::Action::MoveColumnToWorkspaceUp {} => Self::MoveColumnToWorkspaceUp, |
| 1242 | niri_ipc::Action::MoveColumnToWorkspace { reference } => { | 1244 | niri_ipc::Action::MoveColumnToWorkspace { reference } => { |
| 1243 | Self::MoveColumnToWorkspace(WorkspaceReference::from(reference)) | 1245 | Self::MoveColumnToWorkspace(WorkspaceReference::from(reference)) |
| 1244 | } | 1246 | } |
| 1245 | - niri_ipc::Action::MoveWorkspaceDown => Self::MoveWorkspaceDown, | 1247 | + niri_ipc::Action::MoveWorkspaceDown {} => Self::MoveWorkspaceDown, |
| 1246 | - niri_ipc::Action::MoveWorkspaceUp => Self::MoveWorkspaceUp, | 1248 | + niri_ipc::Action::MoveWorkspaceUp {} => Self::MoveWorkspaceUp, |
| 1247 | - niri_ipc::Action::FocusMonitorLeft => Self::FocusMonitorLeft, | 1249 | + niri_ipc::Action::FocusMonitorLeft {} => Self::FocusMonitorLeft, |
| 1248 | - niri_ipc::Action::FocusMonitorRight => Self::FocusMonitorRight, | 1250 | + niri_ipc::Action::FocusMonitorRight {} => Self::FocusMonitorRight, |
| 1249 | - niri_ipc::Action::FocusMonitorDown => Self::FocusMonitorDown, | 1251 | + niri_ipc::Action::FocusMonitorDown {} => Self::FocusMonitorDown, |
| 1250 | - niri_ipc::Action::FocusMonitorUp => Self::FocusMonitorUp, | 1252 | + niri_ipc::Action::FocusMonitorUp {} => Self::FocusMonitorUp, |
| 1251 | - niri_ipc::Action::MoveWindowToMonitorLeft => Self::MoveWindowToMonitorLeft, | 1253 | + niri_ipc::Action::MoveWindowToMonitorLeft {} => Self::MoveWindowToMonitorLeft, |
| 1252 | - niri_ipc::Action::MoveWindowToMonitorRight => Self::MoveWindowToMonitorRight, | 1254 | + niri_ipc::Action::MoveWindowToMonitorRight {} => Self::MoveWindowToMonitorRight, |
| 1253 | - niri_ipc::Action::MoveWindowToMonitorDown => Self::MoveWindowToMonitorDown, | 1255 | + niri_ipc::Action::MoveWindowToMonitorDown {} => Self::MoveWindowToMonitorDown, |
| 1254 | - niri_ipc::Action::MoveWindowToMonitorUp => Self::MoveWindowToMonitorUp, | 1256 | + niri_ipc::Action::MoveWindowToMonitorUp {} => Self::MoveWindowToMonitorUp, |
| 1255 | - niri_ipc::Action::MoveColumnToMonitorLeft => Self::MoveColumnToMonitorLeft, | 1257 | + niri_ipc::Action::MoveColumnToMonitorLeft {} => Self::MoveColumnToMonitorLeft, |
| 1256 | - niri_ipc::Action::MoveColumnToMonitorRight => Self::MoveColumnToMonitorRight, | 1258 | + niri_ipc::Action::MoveColumnToMonitorRight {} => Self::MoveColumnToMonitorRight, |
| 1257 | - niri_ipc::Action::MoveColumnToMonitorDown => Self::MoveColumnToMonitorDown, | 1259 | + niri_ipc::Action::MoveColumnToMonitorDown {} => Self::MoveColumnToMonitorDown, |
| 1258 | - niri_ipc::Action::MoveColumnToMonitorUp => Self::MoveColumnToMonitorUp, | 1260 | + niri_ipc::Action::MoveColumnToMonitorUp {} => Self::MoveColumnToMonitorUp, |
| 1259 | niri_ipc::Action::SetWindowHeight { id: None, change } => Self::SetWindowHeight(change), | 1261 | niri_ipc::Action::SetWindowHeight { id: None, change } => Self::SetWindowHeight(change), |
| 1260 | niri_ipc::Action::SetWindowHeight { | 1262 | niri_ipc::Action::SetWindowHeight { |
| 1261 | id: Some(id), | 1263 | id: Some(id), |
| @@ -1263,18 +1265,18 @@ impl From<niri_ipc::Action> for Action { | |||
| 1263 | } => Self::SetWindowHeightById { id, change }, | 1265 | } => Self::SetWindowHeightById { id, change }, |
| 1264 | niri_ipc::Action::ResetWindowHeight { id: None } => Self::ResetWindowHeight, | 1266 | niri_ipc::Action::ResetWindowHeight { id: None } => Self::ResetWindowHeight, |
| 1265 | niri_ipc::Action::ResetWindowHeight { id: Some(id) } => Self::ResetWindowHeightById(id), | 1267 | niri_ipc::Action::ResetWindowHeight { id: Some(id) } => Self::ResetWindowHeightById(id), |
| 1266 | - niri_ipc::Action::SwitchPresetColumnWidth => Self::SwitchPresetColumnWidth, | 1268 | + niri_ipc::Action::SwitchPresetColumnWidth {} => Self::SwitchPresetColumnWidth, |
| 1267 | - niri_ipc::Action::MaximizeColumn => Self::MaximizeColumn, | 1269 | + niri_ipc::Action::MaximizeColumn {} => Self::MaximizeColumn, |
| 1268 | niri_ipc::Action::SetColumnWidth { change } => Self::SetColumnWidth(change), | 1270 | niri_ipc::Action::SetColumnWidth { change } => Self::SetColumnWidth(change), |
| 1269 | niri_ipc::Action::SwitchLayout { layout } => Self::SwitchLayout(layout), | 1271 | niri_ipc::Action::SwitchLayout { layout } => Self::SwitchLayout(layout), |
| 1270 | - niri_ipc::Action::ShowHotkeyOverlay => Self::ShowHotkeyOverlay, | 1272 | + niri_ipc::Action::ShowHotkeyOverlay {} => Self::ShowHotkeyOverlay, |
| 1271 | - niri_ipc::Action::MoveWorkspaceToMonitorLeft => Self::MoveWorkspaceToMonitorLeft, | 1273 | + niri_ipc::Action::MoveWorkspaceToMonitorLeft {} => Self::MoveWorkspaceToMonitorLeft, |
| 1272 | - niri_ipc::Action::MoveWorkspaceToMonitorRight => Self::MoveWorkspaceToMonitorRight, | 1274 | + niri_ipc::Action::MoveWorkspaceToMonitorRight {} => Self::MoveWorkspaceToMonitorRight, |
| 1273 | - niri_ipc::Action::MoveWorkspaceToMonitorDown => Self::MoveWorkspaceToMonitorDown, | 1275 | + niri_ipc::Action::MoveWorkspaceToMonitorDown {} => Self::MoveWorkspaceToMonitorDown, |
| 1274 | - niri_ipc::Action::MoveWorkspaceToMonitorUp => Self::MoveWorkspaceToMonitorUp, | 1276 | + niri_ipc::Action::MoveWorkspaceToMonitorUp {} => Self::MoveWorkspaceToMonitorUp, |
| 1275 | - niri_ipc::Action::ToggleDebugTint => Self::ToggleDebugTint, | 1277 | + niri_ipc::Action::ToggleDebugTint {} => Self::ToggleDebugTint, |
| 1276 | - niri_ipc::Action::DebugToggleOpaqueRegions => Self::DebugToggleOpaqueRegions, | 1278 | + niri_ipc::Action::DebugToggleOpaqueRegions {} => Self::DebugToggleOpaqueRegions, |
| 1277 | - niri_ipc::Action::DebugToggleDamage => Self::DebugToggleDamage, | 1279 | + niri_ipc::Action::DebugToggleDamage {} => Self::DebugToggleDamage, |
| 1278 | } | 1280 | } |
| 1279 | } | 1281 | } |
| 1280 | } | 1282 | } |
niri-ipc/src/lib.rsmodified+67 -67
| @@ -121,7 +121,7 @@ pub enum Action { | |||
| 121 | skip_confirmation: bool, | 121 | skip_confirmation: bool, |
| 122 | }, | 122 | }, |
| 123 | /// Power off all monitors via DPMS. | 123 | /// Power off all monitors via DPMS. |
| 124 | - PowerOffMonitors, | 124 | + PowerOffMonitors {}, |
| 125 | /// Spawn a command. | 125 | /// Spawn a command. |
| 126 | Spawn { | 126 | Spawn { |
| 127 | /// Command to spawn. | 127 | /// Command to spawn. |
| @@ -135,9 +135,9 @@ pub enum Action { | |||
| 135 | delay_ms: Option<u16>, | 135 | delay_ms: Option<u16>, |
| 136 | }, | 136 | }, |
| 137 | /// Open the screenshot UI. | 137 | /// Open the screenshot UI. |
| 138 | - Screenshot, | 138 | + Screenshot {}, |
| 139 | /// Screenshot the focused screen. | 139 | /// Screenshot the focused screen. |
| 140 | - ScreenshotScreen, | 140 | + ScreenshotScreen {}, |
| 141 | /// Screenshot a window. | 141 | /// Screenshot a window. |
| 142 | #[cfg_attr(feature = "clap", clap(about = "Screenshot the focused window"))] | 142 | #[cfg_attr(feature = "clap", clap(about = "Screenshot the focused window"))] |
| 143 | ScreenshotWindow { | 143 | ScreenshotWindow { |
| @@ -175,75 +175,75 @@ pub enum Action { | |||
| 175 | id: u64, | 175 | id: u64, |
| 176 | }, | 176 | }, |
| 177 | /// Focus the column to the left. | 177 | /// Focus the column to the left. |
| 178 | - FocusColumnLeft, | 178 | + FocusColumnLeft {}, |
| 179 | /// Focus the column to the right. | 179 | /// Focus the column to the right. |
| 180 | - FocusColumnRight, | 180 | + FocusColumnRight {}, |
| 181 | /// Focus the first column. | 181 | /// Focus the first column. |
| 182 | - FocusColumnFirst, | 182 | + FocusColumnFirst {}, |
| 183 | /// Focus the last column. | 183 | /// Focus the last column. |
| 184 | - FocusColumnLast, | 184 | + FocusColumnLast {}, |
| 185 | /// Focus the next column to the right, looping if at end. | 185 | /// Focus the next column to the right, looping if at end. |
| 186 | - FocusColumnRightOrFirst, | 186 | + FocusColumnRightOrFirst {}, |
| 187 | /// Focus the next column to the left, looping if at start. | 187 | /// Focus the next column to the left, looping if at start. |
| 188 | - FocusColumnLeftOrLast, | 188 | + FocusColumnLeftOrLast {}, |
| 189 | /// Focus the window or the monitor above. | 189 | /// Focus the window or the monitor above. |
| 190 | - FocusWindowOrMonitorUp, | 190 | + FocusWindowOrMonitorUp {}, |
| 191 | /// Focus the window or the monitor below. | 191 | /// Focus the window or the monitor below. |
| 192 | - FocusWindowOrMonitorDown, | 192 | + FocusWindowOrMonitorDown {}, |
| 193 | /// Focus the column or the monitor to the left. | 193 | /// Focus the column or the monitor to the left. |
| 194 | - FocusColumnOrMonitorLeft, | 194 | + FocusColumnOrMonitorLeft {}, |
| 195 | /// Focus the column or the monitor to the right. | 195 | /// Focus the column or the monitor to the right. |
| 196 | - FocusColumnOrMonitorRight, | 196 | + FocusColumnOrMonitorRight {}, |
| 197 | /// Focus the window below. | 197 | /// Focus the window below. |
| 198 | - FocusWindowDown, | 198 | + FocusWindowDown {}, |
| 199 | /// Focus the window above. | 199 | /// Focus the window above. |
| 200 | - FocusWindowUp, | 200 | + FocusWindowUp {}, |
| 201 | /// Focus the window below or the column to the left. | 201 | /// Focus the window below or the column to the left. |
| 202 | - FocusWindowDownOrColumnLeft, | 202 | + FocusWindowDownOrColumnLeft {}, |
| 203 | /// Focus the window below or the column to the right. | 203 | /// Focus the window below or the column to the right. |
| 204 | - FocusWindowDownOrColumnRight, | 204 | + FocusWindowDownOrColumnRight {}, |
| 205 | /// Focus the window above or the column to the left. | 205 | /// Focus the window above or the column to the left. |
| 206 | - FocusWindowUpOrColumnLeft, | 206 | + FocusWindowUpOrColumnLeft {}, |
| 207 | /// Focus the window above or the column to the right. | 207 | /// Focus the window above or the column to the right. |
| 208 | - FocusWindowUpOrColumnRight, | 208 | + FocusWindowUpOrColumnRight {}, |
| 209 | /// Focus the window or the workspace above. | 209 | /// Focus the window or the workspace above. |
| 210 | - FocusWindowOrWorkspaceDown, | 210 | + FocusWindowOrWorkspaceDown {}, |
| 211 | /// Focus the window or the workspace above. | 211 | /// Focus the window or the workspace above. |
| 212 | - FocusWindowOrWorkspaceUp, | 212 | + FocusWindowOrWorkspaceUp {}, |
| 213 | /// Move the focused column to the left. | 213 | /// Move the focused column to the left. |
| 214 | - MoveColumnLeft, | 214 | + MoveColumnLeft {}, |
| 215 | /// Move the focused column to the right. | 215 | /// Move the focused column to the right. |
| 216 | - MoveColumnRight, | 216 | + MoveColumnRight {}, |
| 217 | /// Move the focused column to the start of the workspace. | 217 | /// Move the focused column to the start of the workspace. |
| 218 | - MoveColumnToFirst, | 218 | + MoveColumnToFirst {}, |
| 219 | /// Move the focused column to the end of the workspace. | 219 | /// Move the focused column to the end of the workspace. |
| 220 | - MoveColumnToLast, | 220 | + MoveColumnToLast {}, |
| 221 | /// Move the focused column to the left or to the monitor to the left. | 221 | /// Move the focused column to the left or to the monitor to the left. |
| 222 | - MoveColumnLeftOrToMonitorLeft, | 222 | + MoveColumnLeftOrToMonitorLeft {}, |
| 223 | /// Move the focused column to the right or to the monitor to the right. | 223 | /// Move the focused column to the right or to the monitor to the right. |
| 224 | - MoveColumnRightOrToMonitorRight, | 224 | + MoveColumnRightOrToMonitorRight {}, |
| 225 | /// Move the focused window down in a column. | 225 | /// Move the focused window down in a column. |
| 226 | - MoveWindowDown, | 226 | + MoveWindowDown {}, |
| 227 | /// Move the focused window up in a column. | 227 | /// Move the focused window up in a column. |
| 228 | - MoveWindowUp, | 228 | + MoveWindowUp {}, |
| 229 | /// Move the focused window down in a column or to the workspace below. | 229 | /// Move the focused window down in a column or to the workspace below. |
| 230 | - MoveWindowDownOrToWorkspaceDown, | 230 | + MoveWindowDownOrToWorkspaceDown {}, |
| 231 | /// Move the focused window up in a column or to the workspace above. | 231 | /// Move the focused window up in a column or to the workspace above. |
| 232 | - MoveWindowUpOrToWorkspaceUp, | 232 | + MoveWindowUpOrToWorkspaceUp {}, |
| 233 | /// Consume or expel the focused window left. | 233 | /// Consume or expel the focused window left. |
| 234 | - ConsumeOrExpelWindowLeft, | 234 | + ConsumeOrExpelWindowLeft {}, |
| 235 | /// Consume or expel the focused window right. | 235 | /// Consume or expel the focused window right. |
| 236 | - ConsumeOrExpelWindowRight, | 236 | + ConsumeOrExpelWindowRight {}, |
| 237 | /// Consume the window to the right into the focused column. | 237 | /// Consume the window to the right into the focused column. |
| 238 | - ConsumeWindowIntoColumn, | 238 | + ConsumeWindowIntoColumn {}, |
| 239 | /// Expel the focused window from the column. | 239 | /// Expel the focused window from the column. |
| 240 | - ExpelWindowFromColumn, | 240 | + ExpelWindowFromColumn {}, |
| 241 | /// Center the focused column on the screen. | 241 | /// Center the focused column on the screen. |
| 242 | - CenterColumn, | 242 | + CenterColumn {}, |
| 243 | /// Focus the workspace below. | 243 | /// Focus the workspace below. |
| 244 | - FocusWorkspaceDown, | 244 | + FocusWorkspaceDown {}, |
| 245 | /// Focus the workspace above. | 245 | /// Focus the workspace above. |
| 246 | - FocusWorkspaceUp, | 246 | + FocusWorkspaceUp {}, |
| 247 | /// Focus a workspace by reference (index or name). | 247 | /// Focus a workspace by reference (index or name). |
| 248 | FocusWorkspace { | 248 | FocusWorkspace { |
| 249 | /// Reference (index or name) of the workspace to focus. | 249 | /// Reference (index or name) of the workspace to focus. |
| @@ -251,11 +251,11 @@ pub enum Action { | |||
| 251 | reference: WorkspaceReferenceArg, | 251 | reference: WorkspaceReferenceArg, |
| 252 | }, | 252 | }, |
| 253 | /// Focus the previous workspace. | 253 | /// Focus the previous workspace. |
| 254 | - FocusWorkspacePrevious, | 254 | + FocusWorkspacePrevious {}, |
| 255 | /// Move the focused window to the workspace below. | 255 | /// Move the focused window to the workspace below. |
| 256 | - MoveWindowToWorkspaceDown, | 256 | + MoveWindowToWorkspaceDown {}, |
| 257 | /// Move the focused window to the workspace above. | 257 | /// Move the focused window to the workspace above. |
| 258 | - MoveWindowToWorkspaceUp, | 258 | + MoveWindowToWorkspaceUp {}, |
| 259 | /// Move a window to a workspace. | 259 | /// Move a window to a workspace. |
| 260 | #[cfg_attr( | 260 | #[cfg_attr( |
| 261 | feature = "clap", | 261 | feature = "clap", |
| @@ -273,9 +273,9 @@ pub enum Action { | |||
| 273 | reference: WorkspaceReferenceArg, | 273 | reference: WorkspaceReferenceArg, |
| 274 | }, | 274 | }, |
| 275 | /// Move the focused column to the workspace below. | 275 | /// Move the focused column to the workspace below. |
| 276 | - MoveColumnToWorkspaceDown, | 276 | + MoveColumnToWorkspaceDown {}, |
| 277 | /// Move the focused column to the workspace above. | 277 | /// Move the focused column to the workspace above. |
| 278 | - MoveColumnToWorkspaceUp, | 278 | + MoveColumnToWorkspaceUp {}, |
| 279 | /// Move the focused column to a workspace by reference (index or name). | 279 | /// Move the focused column to a workspace by reference (index or name). |
| 280 | MoveColumnToWorkspace { | 280 | MoveColumnToWorkspace { |
| 281 | /// Reference (index or name) of the workspace to move the column to. | 281 | /// Reference (index or name) of the workspace to move the column to. |
| @@ -283,33 +283,33 @@ pub enum Action { | |||
| 283 | reference: WorkspaceReferenceArg, | 283 | reference: WorkspaceReferenceArg, |
| 284 | }, | 284 | }, |
| 285 | /// Move the focused workspace down. | 285 | /// Move the focused workspace down. |
| 286 | - MoveWorkspaceDown, | 286 | + MoveWorkspaceDown {}, |
| 287 | /// Move the focused workspace up. | 287 | /// Move the focused workspace up. |
| 288 | - MoveWorkspaceUp, | 288 | + MoveWorkspaceUp {}, |
| 289 | /// Focus the monitor to the left. | 289 | /// Focus the monitor to the left. |
| 290 | - FocusMonitorLeft, | 290 | + FocusMonitorLeft {}, |
| 291 | /// Focus the monitor to the right. | 291 | /// Focus the monitor to the right. |
| 292 | - FocusMonitorRight, | 292 | + FocusMonitorRight {}, |
| 293 | /// Focus the monitor below. | 293 | /// Focus the monitor below. |
| 294 | - FocusMonitorDown, | 294 | + FocusMonitorDown {}, |
| 295 | /// Focus the monitor above. | 295 | /// Focus the monitor above. |
| 296 | - FocusMonitorUp, | 296 | + FocusMonitorUp {}, |
| 297 | /// Move the focused window to the monitor to the left. | 297 | /// Move the focused window to the monitor to the left. |
| 298 | - MoveWindowToMonitorLeft, | 298 | + MoveWindowToMonitorLeft {}, |
| 299 | /// Move the focused window to the monitor to the right. | 299 | /// Move the focused window to the monitor to the right. |
| 300 | - MoveWindowToMonitorRight, | 300 | + MoveWindowToMonitorRight {}, |
| 301 | /// Move the focused window to the monitor below. | 301 | /// Move the focused window to the monitor below. |
| 302 | - MoveWindowToMonitorDown, | 302 | + MoveWindowToMonitorDown {}, |
| 303 | /// Move the focused window to the monitor above. | 303 | /// Move the focused window to the monitor above. |
| 304 | - MoveWindowToMonitorUp, | 304 | + MoveWindowToMonitorUp {}, |
| 305 | /// Move the focused column to the monitor to the left. | 305 | /// Move the focused column to the monitor to the left. |
| 306 | - MoveColumnToMonitorLeft, | 306 | + MoveColumnToMonitorLeft {}, |
| 307 | /// Move the focused column to the monitor to the right. | 307 | /// Move the focused column to the monitor to the right. |
| 308 | - MoveColumnToMonitorRight, | 308 | + MoveColumnToMonitorRight {}, |
| 309 | /// Move the focused column to the monitor below. | 309 | /// Move the focused column to the monitor below. |
| 310 | - MoveColumnToMonitorDown, | 310 | + MoveColumnToMonitorDown {}, |
| 311 | /// Move the focused column to the monitor above. | 311 | /// Move the focused column to the monitor above. |
| 312 | - MoveColumnToMonitorUp, | 312 | + MoveColumnToMonitorUp {}, |
| 313 | /// Change the height of a window. | 313 | /// Change the height of a window. |
| 314 | #[cfg_attr( | 314 | #[cfg_attr( |
| 315 | feature = "clap", | 315 | feature = "clap", |
| @@ -339,9 +339,9 @@ pub enum Action { | |||
| 339 | id: Option<u64>, | 339 | id: Option<u64>, |
| 340 | }, | 340 | }, |
| 341 | /// Switch between preset column widths. | 341 | /// Switch between preset column widths. |
| 342 | - SwitchPresetColumnWidth, | 342 | + SwitchPresetColumnWidth {}, |
| 343 | /// Toggle the maximized state of the focused column. | 343 | /// Toggle the maximized state of the focused column. |
| 344 | - MaximizeColumn, | 344 | + MaximizeColumn {}, |
| 345 | /// Change the width of the focused column. | 345 | /// Change the width of the focused column. |
| 346 | SetColumnWidth { | 346 | SetColumnWidth { |
| 347 | /// How to change the width. | 347 | /// How to change the width. |
| @@ -355,21 +355,21 @@ pub enum Action { | |||
| 355 | layout: LayoutSwitchTarget, | 355 | layout: LayoutSwitchTarget, |
| 356 | }, | 356 | }, |
| 357 | /// Show the hotkey overlay. | 357 | /// Show the hotkey overlay. |
| 358 | - ShowHotkeyOverlay, | 358 | + ShowHotkeyOverlay {}, |
| 359 | /// Move the focused workspace to the monitor to the left. | 359 | /// Move the focused workspace to the monitor to the left. |
| 360 | - MoveWorkspaceToMonitorLeft, | 360 | + MoveWorkspaceToMonitorLeft {}, |
| 361 | /// Move the focused workspace to the monitor to the right. | 361 | /// Move the focused workspace to the monitor to the right. |
| 362 | - MoveWorkspaceToMonitorRight, | 362 | + MoveWorkspaceToMonitorRight {}, |
| 363 | /// Move the focused workspace to the monitor below. | 363 | /// Move the focused workspace to the monitor below. |
| 364 | - MoveWorkspaceToMonitorDown, | 364 | + MoveWorkspaceToMonitorDown {}, |
| 365 | /// Move the focused workspace to the monitor above. | 365 | /// Move the focused workspace to the monitor above. |
| 366 | - MoveWorkspaceToMonitorUp, | 366 | + MoveWorkspaceToMonitorUp {}, |
| 367 | /// Toggle a debug tint on windows. | 367 | /// Toggle a debug tint on windows. |
| 368 | - ToggleDebugTint, | 368 | + ToggleDebugTint {}, |
| 369 | /// Toggle visualization of render element opaque regions. | 369 | /// Toggle visualization of render element opaque regions. |
| 370 | - DebugToggleOpaqueRegions, | 370 | + DebugToggleOpaqueRegions {}, |
| 371 | /// Toggle visualization of output damage. | 371 | /// Toggle visualization of output damage. |
| 372 | - DebugToggleDamage, | 372 | + DebugToggleDamage {}, |
| 373 | } | 373 | } |
| 374 | 374 | ||
| 375 | /// Change in window or column size. | 375 | /// Change in window or column size. |