Remove keypress simulation functionality stub

This commit is contained in:
GHOSCHT 2024-03-14 11:22:06 +01:00
parent 82075e9ff9
commit f2cb1defa0
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 1 additions and 5 deletions

View file

@ -1,5 +1,5 @@
use int_enum::IntEnum; use int_enum::IntEnum;
use log::{error, info, warn}; use log::error;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::path::Path; use std::path::Path;
use std::process; use std::process;
@ -100,9 +100,6 @@ pub enum KeyMapVariant {
PipeWire { PipeWire {
ids: Vec<String>, ids: Vec<String>,
}, },
Key {
keycode: u8, //TODO: add real keycodes
},
Exec { Exec {
command: String, command: String,
args: Option<Vec<String>>, args: Option<Vec<String>>,

View file

@ -92,7 +92,6 @@ fn eval(key: NanoKeys, state: u8, config: &Arc<Config>) {
} }
}, },
KeyMapVariant::PipeWire { ids } => {} KeyMapVariant::PipeWire { ids } => {}
KeyMapVariant::Key { keycode } => {}
KeyMapVariant::Exec { command, args } => { KeyMapVariant::Exec { command, args } => {
let output: Result<Output, std::io::Error> = match args { let output: Result<Output, std::io::Error> = match args {
Some(some_args) => Command::new(command).args(some_args).output(), Some(some_args) => Command::new(command).args(some_args).output(),