Fixed line breaks for terminal output

This commit is contained in:
cyber-sushi 2024-04-07 04:20:25 +02:00
parent d4c6982980
commit 974e1938fc

View file

@ -46,7 +46,7 @@ pub fn launch_tasks(config_files: &Vec<Config>, tasks: &mut Vec<JoinHandle<()>>)
Option::Some(desktop)
},
(Ok(session), Ok(desktop)) if session == "wayland".to_string() => {
println!(">> Unsupported compositor: {}, won't be able to change bindings according to active window.\n
println!(">> Unsupported compositor: {}, won't be able to change bindings according to active window.\n\
Currently supported desktops: Hyprland, Sway.\n", desktop);
Option::None
},
@ -55,12 +55,12 @@ pub fn launch_tasks(config_files: &Vec<Config>, tasks: &mut Vec<JoinHandle<()>>)
Option::Some("x11".to_string())
},
(Ok(session), Err(_)) if session == "wayland".to_string() => {
println!(">> Unable to retrieve the current desktop based on XDG_CURRENT_DESKTOP env var.\n
println!(">> Unable to retrieve the current desktop based on XDG_CURRENT_DESKTOP env var.\n\
Won't be able to change bindings according to the active window.\n");
Option::None
},
(Err(_), _) => {
println!(">> Unable to retrieve the session type based on XDG_SESSION_TYPE env var.\n
println!(">> Unable to retrieve the session type based on XDG_SESSION_TYPE env var.\n\
Won't be able to change bindings according to the active window.\n");
Option::None
},
@ -127,3 +127,4 @@ pub fn is_mapped(udev_device: &tokio_udev::Device, config_files: &Vec<Config>) -
return false
}