add support to hyprlandctl
BREAKING CHANGE: '-swaymsg' removed, use '-wm sway' instead
This commit is contained in:
6
tools.go
6
tools.go
@@ -602,10 +602,14 @@ func launch(command string, terminal bool) {
|
||||
args = []string{elements[cmdIdx]}
|
||||
}
|
||||
cmd = exec.Command(prefixCommand, args...)
|
||||
} else if *swaymsg {
|
||||
} else if *wm == "sway" {
|
||||
prefixCommand = "swaymsg"
|
||||
args = []string{"exec", elements[cmdIdx]}
|
||||
cmd = exec.Command(prefixCommand, args...)
|
||||
} else if *wm == "hyprland" {
|
||||
prefixCommand = "hyprlandctl"
|
||||
args = []string{"dispatch", "exec", elements[cmdIdx]}
|
||||
cmd = exec.Command(prefixCommand, args...)
|
||||
}
|
||||
|
||||
// set env variables
|
||||
|
||||
Reference in New Issue
Block a user