add riverctl spawn

This commit is contained in:
piotr
2024-09-22 13:26:18 +02:00
parent 0bce8cf971
commit 4afa9f1aa3
2 changed files with 3 additions and 1 deletions

View File

@@ -611,6 +611,8 @@ func launch(command string, terminal bool) {
cmd = exec.Command("swaymsg", "exec", strings.Join(elements, " "))
} else if *wm == "hyprland" || *wm == "Hyprland" {
cmd = exec.Command("hyprctl", "dispatch", "exec", strings.Join(elements, " "))
} else if *wm == "river" {
cmd = exec.Command("riverctl", "spawn", strings.Join(elements, " "))
}
msg := fmt.Sprintf("command: %q; args: %q\n", cmd.Args[0], cmd.Args[1:])