Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux committed Jul 19, 2024
1 parent d0708b4 commit 8994e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ fn get_actions(args: &Args) -> Result<Vec<String>, Box<dyn Error>> {

if is_command_installed("nmcli") {
if is_nm_connected(&RealCommandRunner, &args.wifi_interface)? {
actions.push(format!("{:<8}- 📶 - Disconnect wifi", "action"));
actions.push(format!("{:<8}- - Disconnect wifi", "action"));
} else {
actions.push(format!("{:<8}- 📶 - Connect wifi", "action"));
}
} else if is_command_installed("iwctl") {
if is_iwd_connected(&args.wifi_interface)? {
actions.push(format!("{:<8}- 📶 - Disconnect wifi", "action"));
actions.push(format!("{:<8}- - Disconnect wifi", "action"));
} else {
actions.push(format!("{:<8}- 📶 - Connect wifi", "action"));
}
Expand Down

0 comments on commit 8994e05

Please sign in to comment.